I've got some sizing styles that I'm setting on the fly. I generally develop in chrome, and was directly setting attributes on the style
attribute of the element like so:
element.style['padding-right'] = computedRightPadding + 'px';
I found recently that this does not work in firefox (version 24.6.0). The attribute on the element object looks like it's set correctly, but there is no change in the actual styling of the element. I've got a fiddle showing this here.
What's a good, cross-browser way of setting this style with javascript? I found this question, which says to do the method I'm currently using, which doesn't work. I'd rather not rely on an external library for what seems like it should be a trivial operation.