Loading css rules dynamically in Webkit (Safari/Chrome)

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2008-12-09T02:41:01Z Indexed on 2010/05/30 1:22 UTC
Read the original article Hit count: 193

Filed under:

Hi all, I currently have issues in Webkit(Safari and Chrome) were I try to load dynamically (innerHTML) some html into a div, the html contains css rules (...), after the html gets rendered the style definitions are not loaded (so visually I can tell the styles are not there and also if I search with javascript for them no styles are found). I have tried using a jquery plugin tocssRule(), it works but it is just too slow. Is there another way of getting webkit to load the styles dynamically? Thanks. Patrick

© Stack Overflow or respective owner

Related posts about css

Related posts about dynamic