Re: CSS class and changing with javascript

> css
> .myLong  {width:30%;}
> 
> js
> myLong.style.width=3D10%
> 
> except this js doesn't work.
> 
> what would?

See http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html,
particularly the CSSStyleRule interface.

Boris
-- 
Modern art is what happens when painters stop looking at girls and 
persuade themselves that they have a better idea.
                                          -- John Ciardi

Received on Sunday, 1 September 2002 19:56:45 UTC