Mr.Shawn Posted May 15, 2008 Share Posted May 15, 2008 Hello everyone, The footer floats when i used dynamic javascript add table row function. Any solutions to this guys.. #footer { position: absolute; bottom: 0px; width: 100%; min-width: 100%; text-align: center; } Quote Link to comment https://forums.phpfreaks.com/topic/105700-footer-div/ Share on other sites More sharing options...
Mr.Shawn Posted May 15, 2008 Author Share Posted May 15, 2008 This is the screenshot and the footer div css will make the footer stays at the bottom but it won't work with javascript dynamically. Quote Link to comment https://forums.phpfreaks.com/topic/105700-footer-div/#findComment-541710 Share on other sites More sharing options...
jcombs_31 Posted May 15, 2008 Share Posted May 15, 2008 Not sure why you would want to use absolute positioning for the footer. Just let it flow relative and it should always be below your content. Quote Link to comment https://forums.phpfreaks.com/topic/105700-footer-div/#findComment-541966 Share on other sites More sharing options...
RichardRotterdam Posted May 15, 2008 Share Posted May 15, 2008 remove the absolute attribute and just add this before the footer <br style="clear:both" /> Quote Link to comment https://forums.phpfreaks.com/topic/105700-footer-div/#findComment-542088 Share on other sites More sharing options...
Mr.Shawn Posted May 16, 2008 Author Share Posted May 16, 2008 This is what happens when I tried to use relative position. It leaves a huge blank space below. If you use absolute attribute, it will always stay at the bottom. Quote Link to comment https://forums.phpfreaks.com/topic/105700-footer-div/#findComment-542670 Share on other sites More sharing options...
jcombs_31 Posted May 16, 2008 Share Posted May 16, 2008 That's what it is supposed to do. If you really need your footer at the very bottom of the page, I suggest you look into something like this http://www.themaninblue.com/writing/perspective/2005/08/29/ Quote Link to comment https://forums.phpfreaks.com/topic/105700-footer-div/#findComment-542791 Share on other sites More sharing options...
Mr.Shawn Posted May 20, 2008 Author Share Posted May 20, 2008 That's what it is supposed to do. If you really need your footer at the very bottom of the page, I suggest you look into something like this http://www.themaninblue.com/writing/perspective/2005/08/29/ Owned. Thanks jcombs_31. It solves my problem. Quote Link to comment https://forums.phpfreaks.com/topic/105700-footer-div/#findComment-545481 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.