Ice3T
04-30-2003, 07:16 PM
This is my code:
<html><head><title></title></head><body leftmargin=0 topmargin=0 style=cursor:default>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
It does seem like a dream when you see it in the sony <span style="cursor:default;position:relative;border:1px solid black" onMouseOver=getElementById('id1').style.left=0 onMouseOut=getElementById('id1').style.left=-3000>catalogue<div id=id1 style="position:absolute;top:0;left:-3000;border:1px solid red"><img src=http://www.sonystyle.ca/images/common/relaunch/en/home_banner_evolve2.gif title="this is where it goes"></img></div></span> or on their website.
</body></html>
I want to align the top left corner of the span tag (black border) with the bottom left corner of the div tag (red border)
I thought this might work:
<div id=id1 style="position:absolute;top:-(this.height);left:-3000;border:1px solid red">
but it doesn't.
I think best to run it to see what I mean.
Thanks
<html><head><title></title></head><body leftmargin=0 topmargin=0 style=cursor:default>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
It does seem like a dream when you see it in the sony <span style="cursor:default;position:relative;border:1px solid black" onMouseOver=getElementById('id1').style.left=0 onMouseOut=getElementById('id1').style.left=-3000>catalogue<div id=id1 style="position:absolute;top:0;left:-3000;border:1px solid red"><img src=http://www.sonystyle.ca/images/common/relaunch/en/home_banner_evolve2.gif title="this is where it goes"></img></div></span> or on their website.
</body></html>
I want to align the top left corner of the span tag (black border) with the bottom left corner of the div tag (red border)
I thought this might work:
<div id=id1 style="position:absolute;top:-(this.height);left:-3000;border:1px solid red">
but it doesn't.
I think best to run it to see what I mean.
Thanks