Did you also change the inline css that you have on the original div?
Currently it reads:
HTML Code:
<div id='mypopup' name='mypopup' style='position: relative; width: 179px; height: 36px; display: none;'>
<img src="images/membersonlymessage.gif">
</div>
but you'll need to remove the positioning from it, since you're already declaring an absolute position in your head CSS. Unfortunately, your inline CSS will override it. SO, best thing is remove all CSS inline, so you only have:
HTML Code:
<div id="mypopup" name="mypopup">
<img src="images/membersonlymessage.gif">
</div>
Then for your head css:
HTML Code:
<style type="text/css">
#mypopup
{
position:absolute;
left:50px;
top:50px;
z-index:2;
width: 179px;
height: 36px;
display: block;
}
</style>
Let us know if this works for you.
Notice also that I set the display property to "block", so it's not hidden while you test this. I assume you'll later be using javascript to switch between hidden and block?
Bookmarks