creating css style classes in javascript dynamically
|
| View previous topic :: View next topic |
| Author |
Message |
plantino
Joined: 13 May 2006 Posts: 96
|
| I would like to dynamically create css style classes in javascript. Is this more involved than just createElement('style') and putting in " div.mySylte { font-weight: X; ...} " manually into the style's innerHTML ? |
| |
|
|
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
yes, there is much more to it than that
and none of the methods work in opera |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
| Koplaf, |
| |
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
| plantino, there's a styleSheet object |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
| |
|
|