I'm displaying WordPress posts horizontally using floated divs. I've got it working fine, but when the divs move to a new row, if the paragraph text inside each floated div is too long, the div immediately below it drops. Furthermore, each floated div is affected by the length of the divs above it.
How do I make them flow naturally without being affected by the heights of those above them?
Here is my HTML for a single floated div:
<div class="entry_column>
<div class="entry">
<h2>Entry title</h2>
<p>Entry excerpt...if this text gets too long, the div immediately
below it gets pushed WAY down</p>
</div>
</div>
<br class="clearFloat" />
And here are the relevant CSS classes:
.entry_column {
float: left; width: 50%;
}
.entry_column .entry {
margin-right: 25px;
}
.clearFloat {
clear: both;
height:0;
font-size: 1px;
line-height: 0px;
}
I tried everything I could think of for the clearing, but if I try to add clearing directly on the floated divs, I still can't get it to stop dropping.
Hopefully the image explains this issue a bit better. The "More Music" box drops all the way down because of the length of the "Music Post Stand" div above it.