Okay, I love this idea of style sheets and I think it adds a whole new
seperation of struction and style that makes things ten times easier.
However, Netscape 6 seems to be screwing up. (If you want to see my
page and the source code, e-mail me [EMAIL PROTECTED]) Let me
explain how in particular. In the general form of the style sheet code:
h1 { color="#000000"; }
works fine. Netscape 6 makes the text black and we are all happy.
However, to use javascript, it is helpful to use anchors for the styles
so that they may be changed...with the following style code:
#toc_icon { position: absolute; top: 20; left: 20; }
Later in my code, I put in <body>
<div id="toc_icon">
<img src="icons/dragon.gif" height="100" width="100" /> </div>
and then in java script I can change the position with:
eval("document.toc_icon.top = 40");
However, here is the problem! If I define those anchor styles (I know
they have a name), when I view in Netscape 6, everything ends up in the
upper left hand corner all on top of each other. This code works in
every Netscape 6 I tried, Internet Explorer and even Konqueror. What is
going on? Do I just have a botched copy of Netscape 6 or is there
something they left out when programming??
Thanks,
Dan
Sent via Deja.com
http://www.deja.com/