Hmm.. didnt know about *stylesheet.insertRule, *interesting concept, wonder why no CSS framework using that ever come out.. I assume that due to wanting to have graceful fallback, but still this could be a basis of a nice CSS framework with vars (usefol for colors, sizes classes reuse etc).
Thanks! On Mon, Dec 14, 2009 at 11:45 PM, Oskar Krawczyk <[email protected]>wrote: > Generally through JS, you've got two ways: > > a) generate the css string with the properties and inject it between > <style> > b) use *stylesheet.insertRule* ( > https://developer.mozilla.org/en/DOM/stylesheet.insertRule) > > O. > > On 14 Dec 2009, at 19:00, Gafa wrote: > > Can "a.active" be set through code, like setStyle or setProperty, > without including it in a CSS? > > thanks > > > -- --- "Make everything as simple as possible, but not simpler." - Albert Einstein
