How do i modify the below code so that instead of minusing 210 is minuses another div height so that the equation essentially becomes “main-menu = window height – div height”?
$('#main-menu').css({'height':(($(window).height())-210)+'px'});
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is the Jsfiddle
Markup like this:
Css like this:
Javascript like this:
As you can see from the script, I call the height function.