MasterRacker
New member
I thought this would be easy, but nothing in my world is easy... ;-)
I am trying to emulate a table in css where I have a full width header and footer and two columns in the middle section. My problem is that I can't get the left column to match the height of the right column. I have both columns encapsulated in a "content" div and I was hoping that a height:100% would expand to the height of the container - but it appears that both FF3 and IE7 expand that to the full height of the window. The left column will be a menu and always shorter vertically than the right column. I feel like I'm missing something very basic here.
CSS:
Test page:
Feel free to point out where I'm missing the obvious or making a noob mistake....
_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
I am trying to emulate a table in css where I have a full width header and footer and two columns in the middle section. My problem is that I can't get the left column to match the height of the right column. I have both columns encapsulated in a "content" div and I was hoping that a height:100% would expand to the height of the container - but it appears that both FF3 and IE7 expand that to the full height of the window. The left column will be a menu and always shorter vertically than the right column. I feel like I'm missing something very basic here.
CSS:
Code:
body {
margin: 0px;
}
#header {
height: 75px;
background-color: #EEEEFF;
}
#content {
}
#footer {
background-color: #EEEEFF;
}
#leftcolumn {
width: 150px;
position: absolute;
left: 0px;
padding: 10px 0px 10px 0px;
background-color: #EEEEFF;
border: 1px solid #333333;
/* height: 100%; */
}
#rightcolumn {
padding-left: 155px;
background-color: #FFFFF7;
border: 1px solid #333333;
}
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Page title</title>
<link href="layout.css" rel="stylesheet" type="text/css" />
<link href="textstyles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header"><div id="headertext"><br />----------Header Text</div></div>
<div id="content">
<div id="leftcolumn">
Left Item 1 <br />
Left Item 2 <br />
Left Item 3 <br />
Left Item 4 <br />
</div>
<div id="rightcolumn">
Right Item 1 <br />
Right Item 2 <br />
Right Item 3 <br />
Right Item 4 <br />
Right Item 5 <br />
Right Item 6 <br />
Right Item 7 <br />
Right Item 8 <br />
Right Item 9 <br />
Right Item 10 <br />
Right Item 11<br />
</div>
</div>
<div id="footer"><div id="footertext">----------This is footer text</div></div>
</body>
</html>
![[bugeyed] [bugeyed] [bugeyed]](/data/assets/smilies/bugeyed.gif)
_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]