> From: Akins, Chris
>
> Sometimes people just write their id's as:
> #idName {}
>
> Other times I see the "div" in front such as:
> div#idName
>
> Since id's are unique anyway what's the difference here? Does the one
> without the "div" explicitly stated NOT work in some cases?
> I've also seen similar with classes...
Chris,
I've always been one to use .classname amd #idname
What was revealed to me recently on this or another list was
that using selector.classname or selector#idname is useful
in indicating to others who might work on the site what the
intent of the original style was.
It is sort of self documenting by showing where and perhaps
in what circumstances that rule was intended to be used.
I'm not sure if I would adopt that convention, but I'll be
keeping it in mind for future occasions when it might be
a useful trick to have in the bag.
--
Peter Williams
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/