Beryn Posted November 6, 2011 Share Posted November 6, 2011 I have been learning php following tutorials, but im stumped. In the video he is able to have the container use a code to place the footer on the bottom of the site Here is the code he used body { background-color: #C4C4C4; } #header { background-color: #898989; width: 800px; color: #FFFFFF; font-size: 18pt; border: 1px solid #000000; } #container{ overflow: hidden; } #navigation { background-color: #454545; width: 179px; float: left; margin-bottom: -32767px; padding-bottom: 32767px; border-left: 1px solid #000000; border-right: 1px solid #898989; } #nav_div{ padding: 10px; } #con_div{ padding: 10px; } #content { background-color: #DDDDDD; width: 620px; float: left; margin-bottom: -32767px; padding-bottom: 32767px; border-right: 1px solid #000000; } #footer { background-color: #898989; width: 800px; color: #FFFFFF; font-size: 12pt; border: 1px solid #000000; } Here is the link to his video Quote Link to comment https://forums.phpfreaks.com/topic/250555-cant-get-footer-to-stay-on-the-bottom-of-the-container/ Share on other sites More sharing options...
haku Posted November 6, 2011 Share Posted November 6, 2011 You didn't ask a question, so it's hard to know what the problem is. That said, if you are looking for a stickyfooter (one that sticks to the bottom of the page if there isn't enough content to push it down, but sits below all the content if there IS enough content to push it down), then this one works well: http://www.cssstickyfooter.com/ Quote Link to comment https://forums.phpfreaks.com/topic/250555-cant-get-footer-to-stay-on-the-bottom-of-the-container/#findComment-1285492 Share on other sites More sharing options...
Frank P Posted November 7, 2011 Share Posted November 7, 2011 margin-bottom: -32767px; padding-bottom: 32767px; You shouldn't use crazy codes like that, because there are much more semantic solutions. For all types of fixed and sticky footers, with simpler codes than cssstickyfooter.com offers, even if I say so myself, see Create a Fixed ('Sticky') Footer with CSS. Quote Link to comment https://forums.phpfreaks.com/topic/250555-cant-get-footer-to-stay-on-the-bottom-of-the-container/#findComment-1285721 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.