Previous Message
Next Message

Re: [css-d] references in inline styles verses in the stylesheet

Sent by ecd on 11 July 2002 22:10


From: "Tom Dell'Aringa" [EMAIL-REMOVED]>
Sent: Thursday, July 11, 2002 6:17 pm
| I've gone ahead and moved some inline style rules into the stylesheet
| at the top of the page. So instead of
| <div id="foo" style="some foo stuff"></div>
| I have:
| #foo {some foo stuff}
| <div id="foo"></div>
|
| This seems to have broken a reference of mine:
| controls = window.frames["frame"].document.getElementById("foo");
| controls.style.top <-- this line breaks (Invalid argument thrown)
|


i seem to remember reading something on this very list a while back that
javascript can only read styles applied via the style attribute in a tag,
though i'm not sure if it's limited to any browsers or OSes.

anybody else remember this?

ecd

--
code artist - ubergroove.com
edge team leader - jaggedpeak.com
the force is strong with me.
Previous Message
Next Message

Possibly related: