Previous Message
Next Message

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

Sent by Tom Dell'Aringa on 11 July 2002 18:06


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 feel I'm missing something obvious here - do I have to now do
something different in my referencing?

Tom


=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
Previous Message
Next Message