[wp-hackers] Improved template-functions-category.php
Mike Little
journalized at gmail.com
Sun Sep 12 20:32:15 UTC 2004
On Sun, 12 Sep 2004 20:01:13 +0100, Allan Mertner <amwp at mertner.com> wrote:
> It might be a better idea to use a <span> tag instead of <div> or <p>,
> since it doesn't say what you want to do with it - if it's not styled,
> it will be ignored.
>
> FWIW, using <div> does work though.
>
> Allan
How about adding the class to the anchor (link) tag which will save an
extra span/div.
Whilst you can have block level elements within list items, I suspect
the majority cases would want the category link, count, and date to be
inline items, and thus spans would be a better default. Those who do
wish for a block display for those elements can set display:block for
those classes.
Mike
--
Mike Little
http://zed1.com/journalized/
More information about the hackers
mailing list