I have no problems except when trying to add !important
. It just will not take. I need to add it in order to override a font size dynamically.
Here is how I am adjusting the style:
function newFont(newSizeA) {
var elems = document.getElementsByClassName('a');
for(i=0; i<elems.length; i++) {
elems[i].style.fontSize = newSizeA + 'px!important';
}
}
newFont(20);
With !important
it fails, without !important
it works.
EDIT: This needs to work back to IE8 so I am hoping there is a cross browser solution that someone knows of.