stuffradio Posted July 1, 2009 Share Posted July 1, 2009 I am trying to have my layout template have a footer that always stays on the bottom and will keep going down as the content box goes down. I don't have the content box expand yet and I don't know the best way to expand the content box and keep the footer down. Can anyone see anything wrong with my CSS that would fix the problem? http://carlwuensche.com/unknown/create.html Quote Link to comment https://forums.phpfreaks.com/topic/164338-footer-float-help/ Share on other sites More sharing options...
departedmind Posted July 1, 2009 Share Posted July 1, 2009 Add clear:both; in this style #bottombar , this should work Quote Link to comment https://forums.phpfreaks.com/topic/164338-footer-float-help/#findComment-866874 Share on other sites More sharing options...
stuffradio Posted July 1, 2009 Author Share Posted July 1, 2009 Thank you. Would this keep it pushed down to the bottom as the content box expands down? Quote Link to comment https://forums.phpfreaks.com/topic/164338-footer-float-help/#findComment-866903 Share on other sites More sharing options...
departedmind Posted July 1, 2009 Share Posted July 1, 2009 Yes, if the div #maincontent expands. It would be better if you do not use absolute position on the div #sidenav. You can use float:right for #sidenav. It would be better if you enclose the content div inside a container and use float to position them. <div id="#container"> <div id="maincontent">....</div> <div id="sidebar">....</div> </div> <div id="bottombar">...</div> and instead of using line-break after #top-nav, you can use top-margin on the container. Quote Link to comment https://forums.phpfreaks.com/topic/164338-footer-float-help/#findComment-866915 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.