If i set css "padding-top" property to a value in variable (currentHeight), like here:
jQuery("#page-container").css("padding-top", currentHeight);
It works fine, and i get:
<div id="page-container" style="padding-top: 115px;">
...
But padding-top, has to be important like this:
<div id="page-container" style="padding-top: 115px!important;">
...
If i try to set important, like this:
jQuery('#page-container').css({'padding-top': + currentHeight + '!important'});
Than css property padding-top' is not given to element page-container like here:
<div id="page-container">
How to solove this problem?
Thanks