I have a <div> that is floating on top of all other items, and it's position is relative to a search box on the page. the search box really only appears in 2 locations, once X pixels from the left side of the window, and secondly, X pixels from the right side of the window.
The problem is when the window is resized, if it's resized to where there are horizontal scroll bars, it causes my floating div move with the browser. How do i keep that from happening?
_______________
_brian.
The problem is when the window is resized, if it's resized to where there are horizontal scroll bars, it causes my floating div move with the browser. How do i keep that from happening?
Code:
#search_popup {
background-image:url(img/popup.gif);
background-repeat:no-repeat;
padding-top:15px;
position:absolute;
text-align:center;
top:67px;
left:410px;
z-index:99;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#000000;
width:100px;
height:67px;
}
Code:
<div id="search_popup">
Find anything!<br>
Just type and go!
</div>
_______________
_brian.