Figured out that IE expects the element to be added before style is set, and wants all pixel values to be followed by 'px'.