I would like to have the following setup for a page I am writing. I am keen to use CSS rather than tables and could use a little assistance.
-----------------------------------------
| TOP BAR |
-----------------------------------------
| | |
| | |
| MENU | MAIN CONTENT |
| | |
| | |
| | |
-----------------------------------------
| BOTTOM BAR |
-----------------------------------------
This should fill the page both for height and width. TOP and BOTTOM should have fixed heights and MENU should have a fixed width. The rest can be fluid.
I have tried with the following code but the BOTTOM bar is off the screen at the bottom. I realise this is due to me setting the container DIV to 100% height (I could do that when I used tables)
and the stylesheet...
Tony
-----------------------------------------
| TOP BAR |
-----------------------------------------
| | |
| | |
| MENU | MAIN CONTENT |
| | |
| | |
| | |
-----------------------------------------
| BOTTOM BAR |
-----------------------------------------
This should fill the page both for height and width. TOP and BOTTOM should have fixed heights and MENU should have a fixed width. The rest can be fluid.
I have tried with the following code but the BOTTOM bar is off the screen at the bottom. I realise this is due to me setting the container DIV to 100% height (I could do that when I used tables)
Code:
<div id="top">
</div>
<div id="container">
<div id="menu">
</div>
<div id="main">
</div>
</div>
<div id="bottom">
</div>
Code:
#top {
position: relative;
margin: 0px;
background: #003399;
height: 35px;
}
#container {
position: relative;
height: 100%;
}
#left {
position: absolute;
top: 0px;
left: 0px;
background: #EEEEEE;
width: 160px;
}
#middle {
position: absolute;
top: 0px;
left: 160px;
background: #FFFFFF;
}
#bottom {
position: relative;
margin: 0px;
background: #003399;
height: 35px;
}
Tony
