today I have a quick question. Here is my function:
function checkheight() {
var heightofdiv = $('#checkforheight').height();
$("#centeredbackground").css("min-height",heightofdiv);
}
My problem is that I want to get my variable, heightofdiv, and then subtract the answer by 42 pixels. So really, I want heightofdiv to be equal to the height of checkforheight minus 42 pixels. If this is even possible, help would be greatly appreciated. Thanks!
Can you not simply subtract 42 from
$('#checkforheight').height()?