Good catch Klaus & Christof.  I am a coder and relatively new to CSS.  I do
have a little tenancy towards classitis which I am trying to cure myself
of.

Thanks for the good suggestions!
Matt

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christof Donat
Sent: Friday, August 03, 2007 2:16 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Coder vs Designer?


Hi,

> I spot a typical case of classitis here.

I just used Matts original here.

> Why not getting a little more
> semantic and use a real heading instead of the least semantic element
> with a class "heading":
>
> <div>
>      <h2>Course Title</h2>
>      <p>...</p>
> </div>
>
> Less bloated, less to transfer...

How about

<dt>Course Title</dt>
<dd>...</dd>

And then in the original code have

<dl id="courseHist"></dl>

Even less bloated, less to transfer, more expressive and my suggested code
should still work (as it does with your suggestion).

Christof

Reply via email to