Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 12, 2016 08:53 pm GMT

CSS Shorthand Syntax Considered an Anti-Pattern

I remember Estelle Weyl used to mention this a lot in her talks. If you set .button { background: red; } you've, inadvertently or not, set a whole slew of other properties to their initial values. Harry Roberts demonstrates this clearly and goes so far to say it's a bad practice.

I don't avoid it, but I do actively think about it every time I'm about to use a shorthand. I think "I'm not just doing this to be lazy,


CSS Shorthand Syntax Considered an Anti-Pattern is a post from CSS-Tricks


Original Link: http://csswizardry.com/2016/12/css-shorthand-syntax-considered-an-anti-pattern/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks