I try to make a div expand in height, but it’s expanding over the absolute positionned sticky footer at the bottom, here is a demo:
(I don’t need to support old browsers)
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.
Your
margin-bottom: 200pxrule will only affect subsequent elements in the document flow. It will not make your div 200px smaller than the browser window. To demonstrate I’ve set up a jsFiddle here.If you want the bottom of your div to be 200px from the bottom of the browser window, you could absolutely position it with
top: 0andbottom: 200px. JsFiddle here.