Jump to content

Dynamically Displaying/positioning An Image


gsingh2011

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...