My current technique involves using negative margins to create the illusion of equal heights for my horizontal divs. However, adding borders to these divs has created an issue where there is no bottom border due to the combination of padding and negative margin.
Take a look at this fiddle I've prepared 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; /* necessary to cut off stretched background */
}
.justified-divs div {
padding: 0 10px 9999px 10px;
margin-bottom: -9999px;
*margin-bottom: -9999px;
}
I have explored various solutions but originally chose this one due to its support in older versions of Internet Explorer. Are there any alternative pure CSS options that can achieve equal heights with borders across all browsers?