[Javascript] InnerHTML and CSS Class

Nick Fitzsimons nick at nickfitz.co.uk
Tue Mar 20 15:36:59 CDT 2007


On 20 Mar 2007, at 20:13:57, Glenn E. Lanier, II wrote:

> What I have seems to work, with the exception of the background  
> color/border
> displaying when I apply the class to the div. Using Firefox/Web  
> Developer
> Toolbar, I can change the size of the text and see it change  
> immediately, so
> I know my CSS names are spelled correctly/applied to the item in  
> question.

You're missing a semicolon after your background-color rule; this  
makes it invalid, and also invalidates the following rule, as the two  
rules are considered by the CSS parser to be one chunk of text which  
it can't make sense of :-)

Cheers,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/






More information about the Javascript mailing list