[thelist] Re: apache monitor scripts
David Siedband
technique at oceanicsky.com
Fri Dec 10 21:02:53 CST 2004
better yet, you can use semantic markup and descendant selectors (and
leave the classes out).
for example:
<ul id="navmenu">
<li><a href="aboutresults.html">about <em>results</em></a></li>
#navmenu li a em {
font-weight:bold;
color:#f00;
}
If you must use classes, don't name them based on their appearance.
You, or your client may later decide that they want these elements to
be grey and italic, and then having a class named bldred will be
confusing.
http://www.w3.org/QA/Tips/goodclassnames
--
David Siedband
generation-xml.com
On Dec 10, 2004, at 4:07 PM, Jono wrote:
> You can then write styles to make the text red and bold using <span>,
> so:
>
> <ul id="navmenu">
> <li><ahref="aboutresults.html">about <span
> class="bldred">results</span></a></li>
> <li><ahref="publications.html"><span class="bldred">out</span>
> publications</a></li>
> <li><ahref="contact.html">contact <span
> class="bldred">us</span></a></li>
> </ul>
More information about the thelist
mailing list