News for hackers. Stuff that matters.
Re:The Tilde is an Amazing CSS Selector by alanh on Thursday May 17, 2012 @01:14AM (#3985551)
Two things very wrong with your last suggestion:

1. total lack of semantic value - you cannot possibly get more meaningless than “span inside a div” there. It makes for extremely brittle CSS.

2. You should be using classes rather than elements in your selectors when possible, not only to make the code more maintainable and flexible, but also because it’s more performant (if you care).

There are no comments on this comment yet.