redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Wednesday 12 December 2018 22:23

Ask your IT question here

creating css style classes in javascript dynamically



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> JavaScript forum
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
Koplaf,
Reply with quote
 
Kopilman
Enthusiastic Coder


Joined: 25 May 2006
Posts: 162
plantino, there's a styleSheet object
Reply with quote
 
Koplaf
Enthusiastic Coder


Joined: 28 May 2006
Posts: 130
Kopilman, not in opera
Http://www.quirksmode.org/dom/w3c_css.html

Reply with quote
 
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

© 2018 RedHo