W3C home > Mailing lists > Public > www-style@w3.org > September 2002

Re: CSS class and changing with javascript

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 01 Sep 2002 19:48:20 -0400
Message-Id: <200209012348.TAA14969@no-knife.mit.edu>
To: "jonathan chetwynd" <j.chetwynd@btinternet.com>
cc: www-style@w3.org

> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:16 GMT