Hi, I am not sure wether this is the right place to put CSS styling,
but it is a good idea to put little code snippets like this to share
:).
I also have a simple composite for the same use case but using inline
elements and HR separators every n elements. I needed this because
with floating, if the widgets inside have varying height you can see
some interesting staircase-like widget patterns.
Evan
<div class="widget base derived" id="foo">
...
</div>
This is done automagically by weblocks and can, of course, be
customized by specializing relevant generic functions.
Initially I intended to do a high level DSL for layout specification
that compiles to CSS, but unfortunately CSS has too many quirks for
this to be useful. There's really no way that I can think of to
convert layouts to working CSS programmatically given all the quirks
and browser incompatibilities without spending years on the compiler.