RE: [css-d] CSS Syntax for ID's

2005-10-12 Thread Peter Williams
> 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 see

Re: [css-d] CSS Syntax for ID's

2005-10-12 Thread Jan Brasna
Since id's are unique anyway what's the difference here? Readability. You know which element it refers to. I've also seen similar with classes, but that seems easier to understand It might be also about selector specifity. (

[css-d] CSS Syntax for ID's

2005-10-12 Thread Akins, Chris
Just curious about differences I've seen in some stylesheets I've downloaded and studied. 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" expl