| ▲ | turtleyacht 6 hours ago | |
Hoped to see CSS for the alternative, where <div> is not nested inside the <dl>. Too used to thinking of div as "layout containers." | ||
| ▲ | WorldMaker an hour ago | parent [-] | |
CSS Grid is a very good friend when trying to style DL without extra DIV wrappers. An example:
That very simply puts terms side-by-side data in a nice obvious way. (Even with multiple DDs per DT.) A bit like the Wikipedia screenshot in the article but that's more balanced `grid-template-columns: 1fr 1fr;`. (But that's the flexibility of CSS Grid, right? Real easy to tweak this further for your needs/interests/design.) | ||