csstext

Adding !important within a dynamically written stylesheet for Internet Explorer

I have been experimenting with using javascript to dynamically write stylesheets. In Firefox, one can use the setProperty method on the style for the cssRules of the styleSheets, like... document.styleSheets[0].cssRules[0].style .setProperty(propertyName, propertyValue, 'important'); ...to set the !important flag on the style. I hav...