Is it possible to re-size a div‘s height with the browser window using JavaScript or jQuery getting the windows object dimensions and creating a function?
Is it possible to re-size a div ‘s height with the browser window using
Share
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.
You can bind to the
resizeevent to well… re-size your element:$thisrefers to thewindowobject.Note that
.on()is new in jQuery 1.7 and replaces the depreciated.bind()in this instance.