I am doing this and am having problems, the result is that the pages goes beyond the end of the screen, when there is not enough content for it to do so.
css (only relevent bits included)
Code:
html {
height: 100%;
}
.heightset {
height:100%;
}
body{
margin:0 auto;
padding:0;
background:#DDECFE;
color:#333333;
width:700px;
height:100%;
}
#hdr{
width: 100%;
margin: 0;
border-width: 0 0 0 0;
background: #eeeeee;
color: #333333;
}
#lh-col{
width:75%;
height:100%;
float:left;
border:solid #333333;
border-width:0 0 0 0;
background:#ffffff;
color:#333333;
margin:0;
padding:10px;
}
#rh-col{
background: #c0c0c0;
color: #333333;
margin: 0;
border: 0;
padding: 10px;
margin-left:32em;
}
Page template (excluding head)
Code:
<body>
<div class="heightset">
<!-- start of header -->
<div id="hdr"><? include('ssi/top.php'); ?></div>
<!-- end of header -->
<!-- start of left column -->
<div id="lh-col">
<p class="lefttitle">Title</p>
<p class="lefttext">
Main text here
</p>
</div>
<!-- end of left column -->
<!-- start of right column -->
<div id="rh-col">
<div class="righttitle">Title</div>
<div class="righttext">Details</div>
</div>
<!-- end of right column -->
</div>
</body>
__________________
pjb007
Last edited by pjb007; 05-23-2006 at 09:37 AM..
|