Jquery: 100% Height (html, body)


/ Published in: jQuery
Save to your folder(s)

Declare html, body {height: 100%} in your css. Subtract all divs with a given height, such as a header, navigation and a footer. Like this: "#header" - "#navigation" - "#footer" + "px". Then add the element you need at 100% height.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.