I am currently trying to iterate over a list which will generate a <div>(...)</div>
for each value. These divs will be represented as 'blocks' (as shown in the image below). Problem is, I need them to align as in a row (so the new row starts at the lowest point of the previous).
This would be no problem when using a container div per row, like so:
<div>
<div>(...)</div>
<div>(...)</div>
<div>(...)</div>
</div>
<div>
<div>(...)</div>
<div>(...)</div>
<div>(...)</div>
</div>
Though I would prefer not to use container divs, as I would need to use certain logic inside my <ui:repeat>(...)</ui:repeat>
to add </div><div>
on every third entry.
I'm posting this under JSF too, because I'm hoping that JSF (or PrimeFaces or Tomahawk) has an appropriate solution. Though, if a simple CSS-trick would suffice, that would be perfect.
Hopefully you'll be able to help me out with this one.
Note: a solution using tables won't help me, as I would face the same issue using <tr>(...)</tr>
as with my described container div above.