Currently I'm using the negative margin technique (e.g. CSS - Equal Height Columns?) to make my horizontal divs appear to have identical heights. This worked great for a while, but now I have to add borders to the divs but there is no bottom border due to the combination of the padding and negative margin to stretch the background.
Here's a fiddle I've set up with my code: http://jsfiddle.net/BvVKH/3/
HTML:
<div class="justified-divs">
<div>
<p>column</p>
</div>
<div>
<p>column</p>
<p>column</p>
</div>
<div>
<p>column</p>
<p>column</p>
<p>column</p>
</div>
</div>
Relevant CSS:
.justified-divs {
overflow: hidden; /* cut off the stretched background */
}
.justified-divs div {
padding: 0 10px 9999px 10px;
margin-bottom: -9999px;
*margin-bottom: -9999px;
}
I've looked at many different solutions and the reason I originally went with this one is because of it's old IE support. Are there any more pure CSS options that will accomplish the equal heights with borders in all browsers?