Home › Forums › CSS › Help to make layout 100% height › Re: Help to make layout 100% height
May 13, 2013 at 2:26 am
#134882
unasAquila
Participant
maybe try window
$(document).ready(function() {
if ($(‘#sidebar’).height() < $(window).height()){
$(‘#sidebar’).css(‘height’, $(window).height()+’px’);
}
if ($(‘#content’).height() < $(window).height()){
$(‘#content’).css(‘height’, $(window).height()+’px’);
}
initMenus();
});