Textpattern CMS support forum
break every 2 div(s)
I have a display problem with floating divs.
What I would like is for the divs which are different heights to appear in pairs. Currently the divs appear messy as the divs get stuck under the second ‘column’. Is there a css or txp way to add a
clear:both every two
My code currently is
<txp:images category="cite" limit="999" sort="alt desc"> <div class="grid_12"> <txp:thumbnail class="grid_3 alpha" /> <div class="grid_9 omega"><txp:image_info type="caption" escape="" /></div> </div> </txp:images>
Re: break every 2 div(s)
Hi Tye, I found that the solution was easier. All I needed to do was to add
height:250px;min-height:250px; in the css.