[wp-hackers] Improved template-functions-category.php
Allan Mertner
amwp at mertner.com
Sun Sep 12 19:01:13 UTC 2004
Josh Jarmin wrote:
>There is a problem with your code:
>
><li><div class="cat_item">
> <a href="http://site/index.php?cat=11" title="Test">Test</a>
> <div class="cat_count"> (1)</div> <div class="cat_date">12/08/00</div></div>
></li>
>
>It isn't correct. First of all a div is a block level element, and
>can't be placed inside of and <li> tag. And second, you have way too
>many divs in there. Since you want to style each part of this
>differently, I think it would be better to use <p> and call each
>section a paragraph.
>
>
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
More information about the hackers
mailing list