[wp-docs] CSS style for definition lists in Codex...

Frankie Roberto frankie at frankieroberto.com
Tue Dec 23 17:42:28 GMT 2008


Jennifer Hodgdon <yahgrp at poplarware.com> wrote:

How come the style for definition lists in the Codex is bold for both the
> item and the definition?


[...]


> That makes certain pages look very odd. For instance:
>  http://codex.wordpress.org/Plugin_Submission_and_Promotion
> The entire bottom section is bold, which makes it difficult to read, and
> makes it look like it's more important than the rest of the page, which it
> isn't.


Good point. With the examples on that page though, I'd be tempted not to use
definition lists at all. Whilst they seem to loosely resemble terms (title
of idea followed by description of idea), it's pretty loose, and I'd prefer
to mark them up as simple headings and paragraphs (which still implies a
semantic association). The specs are a bit vague, and so it's down to
interpretation, but I tend to stick to using <dl>s only for
dictionary/glossary style descriptions of simple terms, short phrases.

The HTML5 spec (which is a bit more verbose on the semantics of phrase
elements) suggests you can use it for "terms and definitions, metadata
topics and values, or any other groups of name-value data", but I'm not sure
the example fits any of these...

Should still change the CSS though. :)

Cheers,

Frankie

-- 
Frankie Roberto
Experience Designer, Rattle
0114 2706977
http://www.rattlecentral.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-docs/attachments/20081223/1b9b705c/attachment.htm


More information about the wp-docs mailing list