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 1389 times.

Share your Zope ZPT code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.


Submit | Browse

Most Recent zope zpt snippets

Most Viewed