4 ms·
I've never tried making something like their dotted definition list, and I like how simple and elegant it is.
by stephenhuey 13y ago
I've never tried making something like their dotted definition list, and I like how simple and elegant it is.
- lstamour 13y agoWhile definitely neat in appearance, I don't like their HTML ;-) 1 dl is shown as 4 dls, and they even use a dl with just a dt, no dd. http://www.w3.org/wiki/HTML_lists#Description_lists http://www.w3.org/wiki/HTML_lists#Description_lists I'd say the list should be 1 dl, with 2 dt/dd pairs, the third a dt followed by one or two dds (either works), and the last a dt with a blank or placeholder dd, so that if another dt is added, it's not considered two terms for one description. Though that's really more of a nit-pick.
- erichurkman 13y agoThere are a lot of ways to do it [1]. PrinceXML extended their CSS implementation with a `leader()` generated content option. toc > chapter:after { content: leader(dotted) target-counter(attr(href, page), page); } which does the right thing typographically, even with line wraps and multiple columns. Really great for tables of content and indices. [1] Another example: http://www.w3.org/Style/Examples/007/leaders.en.html http://www.w3.org/Style/Examples/007/leaders.en.html