Is it possible to overwrite styles declared in the head?
Posted on 2009-04-16
I need to overwrite styles declared in the head, to simplify and avoid doubt about what i mean:
<style id='tmplcss'> .. some css .. </style>
.. etc etc
Notice i've given the <style> tag an id, which successfully allows me to reference it, and even query it's content. HOWEVER, to my disappointment i'm NOT able to replace the inner content.
"Alerts" the css content no problem, however:
.. has no effect, and think is illegal. Before i choose another course of action i wanted to know if what i'm trying to do is possible. I basically want to overwrite the css with some new css, in the hope that the page reflects the css changes. Can anyone explain how this is done, or perhaps explain why this isn't supproted, or is it just not supported yet?? I've only tested on my current browser IE7.