Imagine having a definition list with multiple sets. Here's an example:
<dl>
<dt>Colors
<dd>Red
<dd>Blue
<dt>Shapes
<dd>Circle
</dl>
Now, what if you want these definitions to be displayed horizontally like this:
Colors Shapes
Red Circle
Blue
And even when the browser window is resized, it should wrap neatly like this:
Colors
Red
Blue
Shapes
Circle
Is there a clever way to achieve this layout without breaking the semantic structure of the dl tag?
It seems that only dt and dd elements are allowed within a dl list. Divs or other wrappers can't be used. Splitting into separate lists wouldn't be ideal either. Any suggestions?