Current location: Hot Scripts Forums » General Web Coding » CSS » The footer doesn't work


The footer doesn't work

Reply
  #1 (permalink)  
Old 10-09-05, 10:18 AM
xxvatarxx xxvatarxx is offline
Wannabe Coder
 
Join Date: May 2005
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
The footer doesn't work

I have this style sheet

Code:
/* Layout Stylesheet */ 
body{
 margin: 0;
 padding:0; 
 background:#2c2c2c;
 color: #333333;
 }	 
	 
#lh-col{
 position:absolute;
 top:200px;
 left:0;
 width:140px;
 z-index:3;
 background:#2c2c2c;
 color: #c0c0c0;
 border: solid #ffffff;
 border-width:0px;
 }

#rh-col{
 position:absolute;
 top:200px;
 right:0;
 width:140px;
 z-index:2;
 background:#2c2c2c;
 color: #c0c0c0;
 border: solid #ffffff;
 border-width:0px;}

#c-block {
 width:100%;
 z-index:1;
 background:#2c2c2c;
 color: #333333;
 height:80%;}

#hdr{
 height:200px; 
 border-bottom:0px lined #ffffff; 
 width:100%; 
 background:#2c2c2c;
 color: #c0c0c0; 
 margin:0;
 border: solid #ffffff;
 border-width:0 0 0 0px;
  }

#c-col{
 margin:0 142px 0 142px;
 position:relative;
 background:#2c2c2c;
 color: #c0c0c0;
 z-index:5;
 border: dotted #ffffff;
 border-width:0 0 0 0px;
 }

#ftr {
 width:100%;
 height:35px;
 border: solid #000000; 
 border-width:1px 0;
 background:#2c2c2c;
 color: #c0c0c0;
 margin:0;
 }
the #ftr is the footer, yet it appears below the page content, so if the menu is longer than the page it won't appear at the bottom. How can i get it so it will always appear at the bottom, no matter if the content or the menu is the longest?

Any help would be greatly appreciated
Reply With Quote
  #2 (permalink)  
Old 10-11-05, 08:14 PM
Brandon@Cstone Brandon@Cstone is offline
Newbie Coder
 
Join Date: Sep 2005
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Here is my footer on one of my pages. I can't seem to find the URL of the original hack, if I find it I'll post it, as it explains it better than I could.
Code:
/* Footer Section */
.footerDiv {
	clear: both;  
	bottom: 0; 
	left: 0;
	width: 100%;
	background: #E9E9E9;
	padding: 10px 0px 10px 0px;
	font-size: 80%;
	text-align: center;
}

/* MOVE .footerDiv TO BOTTOM HACK: hide from Mac IE5 */
/* \*/
.footerDiv {
	position: absolute;
}
/* */
/* MOVE .footerDiv TO BOTTOM HACK: Change in Opera 5+ (and some others) */
html>body div.footerDiv {
    position: static;
}
/* MOVE .footerDiv TO BOTTOM HACK: Change back in everything except Opera 5 and 6, still hiding from Mac IE5 */
/* \*/
head:first-child+body div.footerDiv {
    position: absolute;
}
/* */
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Art Nexus seeking PHP programmers TheArtNexus Job Offers & Assistance 5 02-26-08 03:08 AM
How to make search engine to work? mhs12grade1992 PHP 1 02-16-05 04:50 PM
[For Hire] Freelance PHP Programmer/Web Designer 3+ yrs exp Czaries Job Offers & Assistance 0 01-04-05 12:53 PM
Grafix Work Submitting in PHP ports1980 PHP 1 08-09-04 11:31 AM
Programer available for work eTech James Job Offers & Assistance 0 08-02-04 01:47 PM


All times are GMT -5. The time now is 01:45 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.