I've got a liquid 3 column layout with a header and footer. I'm trying to get the 3 columns to 100% height. Basically, I want the page to cover the user's entire window.
Here's what I've got so far:
Code:
<div class="wrapper">
<div id="header">
HEADER
</div>
<div class="container">
<div id="left">
LEFT
</div>
<div id="center">
CENTER
</div>
<div id="right">
RIGHT
</div>
<div id="footer">
FOOTER
</div>
</div>
</div>
And the CSS:
Code:
html, body {
height: 100%;
}
/* --------------- WRAPPERS */
.wrapper {
padding: 0;
width: auto;
}
/* --------------- GLOBAL */
/* --------------- HEADER */
#header {
}
.container {
height: 100%;
min-height: 100%;
position: relative;
}
/* --------------- LEFT PANEL */
#left {
float: left;
width: 20%;
}
/* --------------- CENTER PANEL */
#center {
float: left;
width: 60%;
}
/* --------------- RIGHT PANEL */
#right {
float: left;
width: 20%;
}
/* --------------- FOOTER */
#footer {
clear: both;
position: relative;
}
What am I doing wrong?