Here is some sample markup:
<div class="container">
<div class="one">column a<br />column a</div>
<div class="two">column b</div>
</div>
The content in the inner divs can vary in height and is dynamically generated.
To ensure that the two inner divs have the same height, I am utilizing some standard CSS techniques:
.container{
overflow: hidden;
padding: 20px;
border: 1px solid blue;
}
.one{
border-right: 1px solid red;
float: left;
width: 64%;
padding-bottom: 500px;
margin-bottom: -500px;
}
.two{
float: right;
width: 34%;
padding-bottom: 500px;
margin-bottom: -500px;
}
For a live demonstration, check out this fiddle: http://jsfiddle.net/FnWG8/
Issue: The line dividing the two divs extends to the bottom, touching the container as I do not know the maximum height of the inner divs. Hence, I am resorting to using the padding-bottom: 500px
and margin-bottom: -500px
workaround.
I want the division line between the inner divs, but with some space between it and the container:
What steps could be taken to achieve this effect?