I want to make body have 100% of the browser height. Can I do that using CSS?
I tried setting height: 100%, but it doesn\'t work.
height: 100%
I want to set
You can also use JS if needed
var winHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; var pageHeight = $('body').height(); if (pageHeight < winHeight) { $('.main-content,').css('min-height',winHeight) }