ronaldb66
05-15-2003, 09:40 AM
Anyone use any definition lists (dl / dt / dd) lately?
I recently had to build a number of pages for an intranet site with technical descriptions; these tend to contain a lot of lists, and a number of times I needed a list not with bullets or numbers or such, but with terms and explanations, stuff like error codes, functions, etc. From a semantical point of view, a definition list seemed the best choice, but I've never been too happy with its "staggered" default appearance.
Trying to remedy this, I tinkered with CSS a bit and ended up with the following:
Floating the definition term (dt) left, giving the definition description (dd) enough left margin for the dt to fit amply next to it, I ended up with the dt's and the dd's nicely lined up horizontally.
It may be kicking in an open door, but I thought I'd mention it... :o
I recently had to build a number of pages for an intranet site with technical descriptions; these tend to contain a lot of lists, and a number of times I needed a list not with bullets or numbers or such, but with terms and explanations, stuff like error codes, functions, etc. From a semantical point of view, a definition list seemed the best choice, but I've never been too happy with its "staggered" default appearance.
Trying to remedy this, I tinkered with CSS a bit and ended up with the following:
Floating the definition term (dt) left, giving the definition description (dd) enough left margin for the dt to fit amply next to it, I ended up with the dt's and the dd's nicely lined up horizontally.
It may be kicking in an open door, but I thought I'd mention it... :o