[Dragoon]
Vortigaunt
- Joined
- Feb 27, 2004
- Messages
- 840
- Reaction score
- 6
I'm just starting to mess around with using CSS instead of tables, and I've run into a problem with the page I'm working on right now.
I'm trying to get the menu and main content areas to stretch to the bottom of the page. Can't figure it out. I'll post the code as it is now.
HTML (minus <head>, <body>, etc):
CSS:
Anyone know how to do this? Other comments the code are welcome as well.
I'm trying to get the menu and main content areas to stretch to the bottom of the page. Can't figure it out. I'll post the code as it is now.
HTML (minus <head>, <body>, etc):
Code:
<div id="wrapper">
<div id="header">
<div id="headerleft"></div>
<div id="navlocation">Nav Location</div>
<div id="headerright"></div>
</div>
<div id="content">
<div id="contentleft">
<div id="menu">Menu</div>
</div>
<div id="contentright">
<div id="main">Content</div>
</div>
</div>
</div>
CSS:
Code:
/* General layout */
A:link { font-weight: normal; text-decoration: none; color: #000000; }
A:visited { text-decoration: none; color: #000000; font-weight: normal; }
A:hover { text-decoration: none; color: #000000; }
div { font-family: Verdana, Helvetica, Arial; color: #000000; font-size:11px}
#body {
text-align: center;
min-width: 760px;
margin: 0px;
}
#wrapper {
width: 720px;
height: 100%;
margin: 0px;
text-align: left;
}
#header {
width: 720px;
height: 54px;
margin: 0px;
text-align: left;
background: url(images/template/topbg.jpg);
}
#headerleft {
width: 131px;
height: 54px;
margin: 0px;
margin-left: 0;
margin-right: 0;
padding: 0px;
background: url(images/template/topleft.jpg);
float: left;
}
#headerright {
width: 100px;
height: 54px;
margin: 0px;
margin-left: 0;
margin-right: 0;
padding: 0px;
background: url(images/template/toplogo.jpg);
float: right;
}
#navlocation {
position: absolute;
width: 489px;
top: 23px;
margin: 0px;
text-align: left;
}
#content {
width: 720px;
margin: 0px;
text-align: left;
}
#contentleft {
width: 124px;
margin: 0px;
margin-left: 0;
margin-right: 0;
padding: 0px;
background: url(images/template/menubg.jpg);
float: left;
}
#contentright {
width: 596px;
margin: 0px;
margin-left: 0;
margin-right: 0;
padding: 0px;
background: url(images/template/bglight.jpg);
float: right;
}
#main {
margin: 0px;
margin-left: 7;
margin-right: 0;
padding: 0px;
text-align: left;
}
#menu {
margin: 0px;
margin-left: 7;
margin-right: 0;
padding: 0px;
text-align: left;
}
Anyone know how to do this? Other comments the code are welcome as well.