redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

creating css style classes in javascript dynamically



 
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum
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 ?
  Reply with quote


Koplaf



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



Joined: 13 May 2006
Posts: 96
Koplaf,
  Reply with quote
Kopilman



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



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
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

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

Powered by phpBB © 2001, 2005 phpBB Group