|
|
|
|
|
by SkeuomorphicBee
820 days ago
|
|
>Use attribute selectors to convey unicity. > /* Do */ > [id="main"] { max-width: 80ch; } > /* Don't */ > #main { Max-width: 80ch; } I strongly disagree with this kind of guideline. The id attribute has very good uses, and in those cases the hash syntax should be the preferred way. The use of id in an attribute selector is such a bad choice that makes me question the whole document. |
|
As for the #selector, in what cases do you need that much specificity? Not a rhetorical question!