Zope ZPT Floated content inside a loop

It usually makes sense to clear the floats at an expected interval, to prevent an item with an unexpected height from breaking the layout.
<tal:loop repeat="item items">
		My content
	<div class="visualClear" tal:condition="python: repeat['item'].number() % 3 == 0"></div>
Posted by
Snippet Viewed 1549 times.

Share your Zope ZPT code snippets:

  • Get some recognition & link back to your site.


Submit | Browse

Most Recent zope zpt snippets

Most Viewed