I'm trying to change the line-height property with jQuery using this:
jQuery(document).ready(function () {
var windowWidth = $(window).width();
$('h1').css({
'top': Math.floor(windowWidth * 0.0964) + 'px',
'left': Math.floor(windowWidth * 0.0872) + 'px',
'line-height': '0.9em !important'
});
});
If I use the inspector and check the element style, I can see the top and left property but not the line-height, can someone explain to me what's wrong?
And here's the jsFiddle I made just to be sure I'm not crazy!
http://jsfiddle.net/p4DU6/4/
Tested it in FF, Chrome, IE8 and IE9