Brian M. Curran wrote:

> Why does www.seobook.com put his logo in a div? It seems like its' only
> purpose is to hold the code class="logo". Wouldn't it have been easier to
> put the class="logo" in the img tag like how I did on my site:
> www.draftingservices.com ?

Well, clearly I don't /know/ why he did it that way,
but looking at the code it is not only an <IMG> that
is within the <DIV> -- there is a surrounding <A>
as well.  Which means that he can style (e.g.)

        .logo A

and

        .logo IMG

which would not be possible if the class were associated
solely with the <IMG>.

Philip Taylor
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to