OK, I went through that and makaged to hack something together that works in IE and Firefox. But now I have some further issues.
A scrolling section that has to determine its length and whether to scroll and a footer that should stay at the bottom of the page unless it would cover other content....
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>TEST</title>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 10px;
color: #000000;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
a:link {
color: #000000;
}
a:visited {
color: #333333;
}
a:hover {
color: #666666;
}
a:active {
color: #666666;
}
h1,h2,h3,h4,h5,h6 {
font-weight: bold;
}
h1 {
font-size: 12px;
color: #000000;
}
h2 {
font-size: 11px;
color: #000000;
}
h3 {
font-size: 10px;
color: #000000;
}
#banner {
margin: 0px;
padding: 0px;
clear: both;
height: 40px;
width: 760px;
background-color: #66CCFF;
}
#header {
margin: 0px;
padding: 0px;
clear: both;
height: 100px;
width: 760px;
background-color: #CCCCCC;
}
#columnwrap {
margin: 0px;
padding: 0px;
clear: both;
width: 760px;
border: 0;
margin-top: 5px;
}
#footer {
position: absolute;
bottom: 0;
margin: 0px;
padding: 0px;
clear: both;
height: 10px;
width: 568px;
margin-left: 192px;
background-color: #333333;
}
* html #footer {
margin-left: 192px;
}
#menuCol {
margin: 0px;
padding: 0px;
width: 186px;
float: left;
background-color: #999999;
}
#contentCol {
margin: 0px;
padding: 0px;
width: 374px;
margin-left: 192px;
background-color: #00CCFF;
}
* html #contentCol {
margin-left: 190px;
}
#advertCol {
margin: 0px;
padding: 0px;
width: 186px;
float: right;
background-color: #666666;
}
#pageContent {
margin: 0px;
padding: 0px;
width: 374px;
}
#articleGroup {
margin: 0px;
padding: 0px;
width: 374px;
}
-->
</style></head>
<body>
<div id="banner">BANNER</div>
<div id="header">HEADER</div>
<div id="columnwrap"><div id="menuCol">
<p>MENU</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div><div id="advertCol">
<p>AD COLUMN</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div><div id="contentCol"><div id="pageContent"><p>CONTENT - NEEDS PAGE & ARTICLE GROUP DIVS </p>
<p>Eu fugiat nulla pariatur. Sed do eiusmod tempor incididunt velit esse cillum dolore lorem ipsum dolor sit amet. Cupidatat non proident, mollit anim id est laborum. Consectetur adipisicing elit, quis nostrud exercitation duis aute irure dolor. Ut aliquip ex ea commodo consequat.</p></div><hr><div id="articleGroup"><h1>This DIV 'articleGroup' to scroll when needed</h1><h2>Should extend to the bottom of the screen but not over the footer</h2>
<h3>The footer should sit at the bottom the screen but should also not encroach on the 'menuCol' or 'advertCol'</h3>
<p>So to recap this div should stretch to the bottom of the screen excluding the footer and scroll if content exceeds. The footer should remain at the bottom of the screen or be pushed off the screen by either the menuCol or advertCol depending on which is the longer. menuCol, advertCol and contentCol are all contained within columnwrap which may make this easier or harder. I am not sure. Any help would be greatly appreciated.</p>
</div>
</div></div>
<div id="footer">FOOTER SITS AT BOTTOM </div>
</body>
</html>
Bookmarks