Hi
I am trying to make a layout with an elastic sidebar and a fluid content area. however, I want the sidebar to appear to extend the whole height of the page. I know how to do this with a fixed-width layout, but with a fluid right column I am scratching my head.
Thanks
<body>
<div id="page">
<!-- sidebar -->
<div id="sidebar">
<div id="logo">
Logo here
</div>
<div id="navigation">
Navigation here
</div>
</div>
<!-- header and content -->
<div id="rightCol">
<div id="header">
</div>
<div id="content">
Main content here
</div>
</div>
</div> <!-- end page div -->
</body>
And my css:
#page {
width: 95%;
margin: 10px auto;
}
/* sidebar rules */
#sidebar {
width: 15em;
min-height: 100%;
background: #eeeeee;
float: left;
}
#logo {
width: 200px;
height: 200px;
margin: 5px auto;
text-align: center;
border: 1px solid black;
}
/* end sidebar rules */
#rightCol {
background: #d2d2d2;
height: 700px;
}