Is there a way to setup a layout so that the header is 50px, body is 100% and footer is 50px?
I would like the body to use up the entire viewing area at minimum. I would like to have the footer and header to be on the screen at all times
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.
I created an example in jsfiddle:
UPDATED JsFiddle: http://jsfiddle.net/5V288/1025/
HTML:
CSS:
Without border-box the content will be height 100% + 140px padding. With the border-box the content height will be 100% and the padding will be inside.