gsingh2011 Posted February 19, 2010 Share Posted February 19, 2010 I have a footer bar that I want at the bottom of a page. However, because there is a search bar in the same page, when the results are displayed the page gets longer, but the bar, which was displayed with html image tags, stays where it is and does not move to the bottom of the page. What I'm thinking of doing is displaying a new bar with php after the results are displayed, but the problem is getting rid of the old one. How do I get rid of it, or is there a better way to have that footer bar move as the page gets longer? Link to comment Share on other sites More sharing options...
ShadowMage Posted February 19, 2010 Share Posted February 19, 2010 How are you currently displaying the results? AJAX? PHP?You could just use a <div> tag and put it before your footer and then populate that <div> with your results. Link to comment Share on other sites More sharing options...
gsingh2011 Posted February 19, 2010 Author Share Posted February 19, 2010 How are you currently displaying the results? AJAX? PHP?You could just use a <div> tag and put it before your footer and then populate that <div> with your results.Yea, I'm using PHP. That's the way I'm doing it. There's a div before the footer image and when results are echoed in that div, the image doesn't move. If I try to echo the image tags after I display the results, I'll have the footer placed properly but the old image will still be there. Link to comment Share on other sites More sharing options...
gsingh2011 Posted February 19, 2010 Author Share Posted February 19, 2010 Nevermind, that method does work. I just had an error in my CSS. Link to comment Share on other sites More sharing options...
ckrudelux Posted February 20, 2010 Share Posted February 20, 2010 What about to use z-index and position fixed in your css, then you don't need to use php? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.