|
creating css style classes in javascript dynamically
|
| View previous topic :: View next topic |
| Author |
Message |
plantino Enthusiastic Coder
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 ?
Reply with quote
|
| |
|
|
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
|
yes, there is much more to it than that
and none of the methods work in opera
Reply with quote
|
| |
|
|
plantino Enthusiastic Coder
Joined: 13 May 2006 Posts: 96
| |
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
| |
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
| |
|