I want to be able to add an "!important" to the height of #content on line 7 of the code below. I need to be able to use the variable $newHeight because it needs to stay dynamic.
Does anyone know how I can append an !important to this css declaration? I tried using a plus (+) sign to concatenate, but was unsuccessful.
Here is the code:
$(window).resize(function() {
var $windowHeight = $(window).height();
var $newHeight = $(window).height()-$('#footer').height()-153;
if ($windowHeight < 847){
$('#content').css("height",$newHeight);
}
});