Forum Moderators: not2easy

Message Too Old, No Replies

Problem with absolute positioning

this is absolutely frustrating :)

         

bwallace 0614

4:01 pm on Mar 4, 2004 (gmt 0)

10+ Year Member



Back "in the day", I wrote some really slick JavaScript libraries that basically automated everything having to do with layout, content, and page-generation. These libraries generated "on-the-fly" page HTML based on the user's browser, platform, etc. I was targeting IE version 4 and 5 as well as Netscape 4. It worked wonderfully (as it still does for these version of browsers) but when trying to run scripts for IE 6 or any post-4 version of Netscape, any images I try to place using absolute positioning are all placed one atop the other in the upper left side of the page (or frame). What's really strange is that when I run the same script (using IE6) locally (from my harddrive) it works fine, but when launching it from a web-hosted server it does not.
Does any one have any advice for me on this issue?

[edited by: bwallace_0614 at 4:11 pm (utc) on Mar. 4, 2004]

bwallace 0614

4:09 pm on Mar 4, 2004 (gmt 0)

10+ Year Member



BTW, here is a sample of the code:

...(some code)

<DIV
STYLE="position:absolute;
left:35;
top:110"
>

...(more code)

<SPAN
STYLE="position:absolute;
left:250;
top:0"
>
<A
ID="ID_Anchor_Element_News"
NAME="NAME_Anchor_Element"
TITLE="Latest News"
STYLE="cursor:hand"
>
<IMG
ID="ID_Image_Element_News"
NAME="NAME_Image_Element_News"
ONMOUSEOVER="this.src = 'News02.jpg';"
ONMOUSEOUT ="this.src = 'News01.jpg';"
SRC="News01.jpg"
BORDER=0
>
</A>
</SPAN>

...(more code)

</DIV>