...

View Full Version : problem with putting footer in the bottom of the page



nischalinn
05-14-2011, 08:16 PM
I have got problem putting the footer in the bottom of the page. Footer goes upward. The CSS code of the footer is:

#footer
{width:1002px;
height:105px;
margin-bottom:0px;
bottom:0px;
float:left;
background-image:url(HOSPITAL_07.gif);
background-repeat:repeat-x }

How can I solve the problem??

alykins
05-14-2011, 08:58 PM
your "bottom:0px;" needs to have a position: relative||absolute set before it will work (I'm 90% sure)

AndrewGSW
05-14-2011, 09:04 PM
your "bottom:0px;" needs to have a position: relative||absolute set before it will work (I'm 90% sure)
That's right: if you add 'position:absolute;' and keep the 'bottom:0px;' the footer will pop to the bottom of its parent container - which might be the 'body'. But it will not be quite at the bottom because of the 'height:105px;'.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum