Basic layout - CSS
Top bar - fixed Left bar - fixed Main content - scrollable
by Alon Rotem
HTML
<div id="pleasewait">
<div class="centered">
<img src="http://www.costaazaharhomes.com/images/load2.gif" width="100px"/><br/>
Please wait
</div>
</div>
<div class='wrap'>
<div class='head'>Header</div>
<div class='bodywrap'>
<div class='left'>
left<br/>
left<br/>
left<br/>
</div>
<!--div class='right'>right</div-->
<div class='center'>center center center center center center center center center center center center ... blah</div>
</div>
</div>
CSS
#pleasewait {
position: absolute;
top: 0;
left: 0;
background:rgba(0,255,0,0.7);
z-index: 1000;
width: 100%; height: 100%;
}
.centered {
position: fixed;
top: 50%;
left: 50%;
/* bring your own prefixes */
transform: translate(-50%, -50%);
}
html,
body {
height: 100%
}
.wrap {
width: 100%;
height: 100%;
position: relative
}
.head {
height: 50px;
position: fixed;
top: 0;
left: 0;
width: 100%
}
.bodywrap {
margin-top: 50px;
margin-left: -8px;
margin-right: -8px;
}
.left {
width: 203px;
height: 100%
}
.left,
.center,
.bodywrap {
height: 100%
}
.left {
float: left;
position: fixed
}
.center {
margin-left: 203px;
overflow: hidden;
overflow-x: hidden;
}
.right {
position: fixed;
right: 0
}
.left {
background-color: #aaa
}
.center {
background-color: #444
}
.head {
background-color: #777
}
JavaScript
setTimeout(function() {
$("#pleasewait").hide();
}, 5000);