Hello all!
I have a little problem. I am trying to make 100% CSS no-tables design (finally). I have the navigation float:left to allow the main content to come and sit next to it. They're all in separate divs, and it's positioned fine. The only issue is that I have a background image in the navigation and I want to have the navigation fit the height of the main content so the background will repeat all the way to the bottom.
The whole page is centered in the screen.
Here's my code:
I didn't expect the "height: 100%" to work... but what should I be doing?!
Thanks!
I have a little problem. I am trying to make 100% CSS no-tables design (finally). I have the navigation float:left to allow the main content to come and sit next to it. They're all in separate divs, and it's positioned fine. The only issue is that I have a background image in the navigation and I want to have the navigation fit the height of the main content so the background will repeat all the way to the bottom.
The whole page is centered in the screen.
Here's my code:
Code:
div#container {
width: 760px;
padding: 0px;
margin-left: auto;
margin-right: auto;
border: 1px solid #000000;
}
div#header {
margin-left: auto;
margin-right: auto;
text-align: center;
width: 760px;
padding: 0px;
margin: 0px;
}
div#leftnav {
text-align: center;
width: 169px;
background-image: url(images/sidenav-bg2.jpg);
padding: 0px;
margin: 0px;
float: left;
height: 100%;
}
div#main {
padding: 0px;
margin-top: 0px;
margin-left: 169px;
width: 591px;
}
I didn't expect the "height: 100%" to work... but what should I be doing?!
Thanks!















