Thanks Karl -
Karl Rudd wrote: > > Under IE you can use createStyleSheet() and cssText: > > var s = document.createStyleSheet().cssText = '.something { color: red > }'; > > More info can be found here: > > http://www.quirksmode.org/dom/changess.html > > Karl > > On 2/23/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote: >> well, you can append to the head, example: >> http://ov-staging.informationexperts.com/e.htm >> >> <script type="text/javascript"> >> $(document).ready(function(){ >> $('head').append('<style>body{background:#000;}</style>'); >> }); >> </script> >> >> This does not work in the IEs tho (6, 7), but I am sure something like >> that >> is possible with some tweak. It does work in opera 9 and ff2 >> >> >> -- >> Benjamin Sterling >> http://www.KenzoMedia.com >> http://www.KenzoHosting.com >> _______________________________________________ >> jQuery mailing list >> discuss@jquery.com >> http://jquery.com/discuss/ >> >> > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/How-can-I-create-a-%28style%29-.class-dynamically--tf3276875.html#a9121628 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/