I have a Try this: Updated Based On Comment: I am using the jQuery in above code, you will have to download and include it in your page first. Once you have downloaded and included in your page, then use this code: One way to achieve this in some cases via just HTML and CSS is to have absolutely positioned div with it's top set to the For example:60px
high 10px
$(window).resize(function(){
$('#fullscreen').height($(document).height() - ($('#div1').height() + $('#div2').height()) + 'px');
});
$(function(){
$(window).resize(function(){
$('#fullscreen').height($(document).height() - ($('#div1').height() + $('#div2').height()) + 'px');
});
});
70px
and every other direction set to 0px
. Then every other side will adjust itself to the edges of the browser window.<style type="text/css">
#fullscreen {
background-color: #0000FF;
position: absolute;
top: 70px;
left: 0px;
right: 0px;
bottom: 0px;
}
</style>
<div id="fullscreen">The Full Screen</div>