I'm having a bit of trouble with some CSS, and am seeking some help from this wonderful community.
I am trying to build a layout containing the following elements:
1) A header area 2) A footer area 3) A left hand pane 4) A content area
I have come up with the following CSS, but I do not believe this is the best way of doing what I need.
Please find below an image of what I am looking for, with all the details. Additionally, below is my current CSS and html.
CSS:
* {
margin: 0;
}
html, body {
height: 100%;
overflow: hidden;
}
#wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -100px;
}
#leftbar {
float: left;
width: 350px;
background-color: #EAEAEA;
height: 100%;
position: absolute;
z-index: -1;
}
#rightbar {
}
#footer {
height: 100px;
}
#header {
height: 100px;
}
HTML:
<div id="wrapper">
<div id="header"> </div>
<div id="content">
<div id="leftbar"> </div>
<div id="rightbar"> </div>
</div>
</div>
<div id="footer"> </div>
Desired layout:
Please note that although I don't mind using jQuery and javascript to accomplish this, I'd like to avoid it.
Any help will be greatly appreciated.
Thanks!