One type of CSS in particular makes me cringe every time I see it; poor selector intent. Poor selector intent means carpet bombed selectors whose key selector has way too broad a reach; a selector like .header ul{}
as opposed to one like .main-nav{}
, .widget h2{}
instead of .widget-title
, article > p:first-child{}
as opposed to .intro{}
. Selectors whose intent isn't specific enough. [...]
@critara: a lucky woman, mum in love, passionate about anything web, communication, technology, The Cloud. That's where she lives and works. Ah, and she loves travelling too. :) By the way, she physically lives in Italy
giovedì 19 luglio 2012
Shoot to kill; CSS selector intent — CSS Wizardry—CSS, Web Standards, Typography, and Grids by Harry Roberts
Iscriviti a:
Commenti sul post (Atom)
Nessun commento:
Posta un commento