tosbourn
03-12-2009, 11:37 AM
Hey,
This will be hard to explain as the site isn't somewhere where I can just link you up. But here is my problem. I have two divs inside a container div (CSS below) I need the left hand div to fill all the available space vertically as the container div can offer. The right hand div will always be at least slightly longer than the left hand div, so pretty much always dictates the height of the container.
left hand div CSS
#MyPlace {
background-color: rgb(240,230,250);
padding:5px;
width:510px;
margin-left:10px;
height:100%;
float:left;
}
right hand div CSS
#RightColumn {
width:250px;
margin-left:10px;
margin-right:10px;
float:right;
}
container CSS
#Content {
padding: 5px 0;
margin-bottom:5px;
width:800px;
float:left;
border-bottom:2px dotted silver;
}
This will be hard to explain as the site isn't somewhere where I can just link you up. But here is my problem. I have two divs inside a container div (CSS below) I need the left hand div to fill all the available space vertically as the container div can offer. The right hand div will always be at least slightly longer than the left hand div, so pretty much always dictates the height of the container.
left hand div CSS
#MyPlace {
background-color: rgb(240,230,250);
padding:5px;
width:510px;
margin-left:10px;
height:100%;
float:left;
}
right hand div CSS
#RightColumn {
width:250px;
margin-left:10px;
margin-right:10px;
float:right;
}
container CSS
#Content {
padding: 5px 0;
margin-bottom:5px;
width:800px;
float:left;
border-bottom:2px dotted silver;
}