To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-10-2006, 11:14 PM   #1
damasta
Member
 
Join Date: Jun 2001
Posts: 35
Footer to stay at the bottom

I have a footer. I was wondering if it is possible to have it always at the bottom. I hope my question is clear. But here is an example: http://jimmyjazz.homeip.net:808/listenwavy/
If you make the browser window small, you can see the footer goes on top of the body. I'd like for it to always remain below the body and at bottom of the page. How can that be accomplished? Thanks.
FYI, not my site by the way.
damasta is offline   Reply With Quote
Old 01-11-2006, 02:17 PM   #2
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
The site is 100% CSS (Thank god!!) and they use this footer code:
Code:
#footer{
	position: absolute;
	bottom:1px;
	left:0;
	background: transparent url('footer2.jpg') repeat-x  top left ;
	width: 100%;
	height:56px;
}
#footerinsert{
	background: transparent url('footer1.jpg') no-repeat  top left ;
	width:auto;
	height:57px;
}
#footertext{
	padding-top:35px;
	padding-left:130px;
	color:#dee2e6;
	font-size: xx-small;
}
And it's used in this way:
Code:
<div id='footer'>
<div id='footerinsert'>
<div id='footertext'>This site was made with 100% open source
software in <a href="http://ubuntu.com/">UBUNTU Linux</a>.</div>
</div>
</div>
The code to keep the footer at the bottom is this:
Code:
#footer{
	position: absolute;
	bottom:1px;
}
You can read more on positions at the w3 schools webpage: w3 Schools.

~Brett
bpat1434 is offline   Reply With Quote
Old 01-12-2006, 12:55 AM   #3
damasta
Member
 
Join Date: Jun 2001
Posts: 35
Okay, it works properly in Firefox but not in IE as evident here: http://www.geocities.com/bdptcob/ss.JPG. Any idea how to workaround IE's incompetence?
damasta is offline   Reply With Quote
Old 01-12-2006, 02:50 AM   #4
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
What does your code look like? No matter what I do, I can't get the footer to move up like you do. It's absolutely positioned, so it shouldn't matter which browser you use.

~Brett
bpat1434 is offline   Reply With Quote
Old 04-27-2006, 01:07 AM   #5
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
And I was wrong!!!

So to keep it at the bottom, you need to use the "fixed" position, not absolute. But unfortunately IE doesn't support the fixed position.

So the work around is to hide the "fixed" position declaration with a small hack, and in IE just leave it absolutely positioned and put it below everything else (like z-index: 1).
bpat1434 is offline   Reply With Quote
Reply

Bookmarks


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

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 On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:00 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.