Previous Message
Next Message

RE: [css-d] kissing hex values goodbye

Sent by Ben Henick on 8 February 2002 15:03


On Fri, 8 Feb 2002, Merkey, Brett wrote:

> |  When I attempt to ask either IE or Netscape 6 for any kind 
> |  of style (e.g. 
> |  document.getElementById("ThisElement").style.anything), all 
> |  I've ever been 
> |  able to get is a null value, even though it's specified in 
> |  the stylesheet.
> 
> You must be doing something else wrong. I just put this
> together quickly and everything works as expected. Use this
> as a model.

Writing the values is something I've never had trouble with.

It's retrieving them that's the problem...

Let's suppose:

if (document.getElementById("blah").style.width == "288px")
...

Both IE and Netscape 6 think that the style referenced is a null value, 
even if I've explicitly set it previously.

What am I doing wrong?  (I was able to come up with better code for my 
particular application when I first encountered this problem, but I still 
need to know where I'm screwing up.)


TIA
-- 
Ben Henick
Web Author At-Large              Managing Editor
http://www.io.com/persist1/      http://www.digital-web.com/
[EMAIL-REMOVED]                  [EMAIL-REMOVED]
--
"Are you pondering what I'm pondering, Pinky?"
"I think so, Brain, but... (snort) no, no, it's too stupid."
"We will disguise ourselves as a cow."
"Oh!" (giggles) "That was it exactly!"
Previous Message
Next Message

Message thread:

Possibly related: