I tried searching the forum for an answer to this but I couldnt find anything.
I am having problems making a page that has a border that will expand with the rest of the page. Here is the issue. I have the header, and than two fixed columns on each side because it uses a unique gradient and then under those i have a solid coloured image that is set to repeat-y to fill up the remaining space and then there is a footer at the bottom. The problem is that for repeat-y to work I need to set a height but it will totally depend on the text inside and the font size of the users browser. Heres the code:
HTML Code:
<html>
<head><title></title>
<link rel = "stylesheet" href = "test.css">
<body>
<div id="holder">
<div id="header"> </div>
<div class="clear"></div>
<div id="leftbar">
<div id="leftTopside"></div>
<div id="leftBotside"></div>
<div class="clear"></div>
</div>
<div id="content">
Lorem Ipsum
</div>
<div id="rightBar">
<div id="rightTopside"></div>
<div id="rightBotside"></div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div id="footer"> </div>
</div>
</body>
</html>
Code:
#holder
{
width:450px;
height: 100%;
}
#header
{
background-image: url('images/test/header.jpg');
background-repeat:no-repeat;
height:41px;
margin-bottom:-2px;
}
#leftBar{
margin:0;
float:left;
height:100%;
padding:0;
}
#rightBar{
margin-left:-1px;
float:left;
height:100%;
padding:0;
}
#leftTopside
{
margin:0;
background-image: url('images/test/leftTopside.jpg');
background-repeat:no-repeat;
height:635px;
width:43px;
}
#rightTopside
{
margin:0;
background-image: url('images/test/rightTopside.jpg');
background-repeat:no-repeat;
width:41px;
height:635px;
}
#leftBotside
{
margin:0;
background-image: url('images/test/leftBotside.jpg');
background-repeat:repeat-y;
height:100%
width:43px;
}
#rightBotside
{
margin:0;
background-image: url('images/test/rightBotside.jpg');
background-repeat:repeat-y;
height:100%;
width:41px;
}
#content
{
border:1px solid black;
background-image: url('images/test/content.jpg');
background-repeat:no-repeat;
height:auto;
width:366px;
float:left;
}
#footer
{
background-image: url('images/test/footer.jpg');
background-repeat:no-repeat;
height:auto;
}
.clear {
clear:both;
}
I was hoping that I could set rightBotside height:100% because the container block would hold it but instead it repeats the height of the container block rather than just fill up the rest of the space. Any suggestions on how I can avoid this? I am pretty lost on this one.
Thanks
__________________
DVD Movie Release Database: Please login or register to view this content. Registration is FREE
|