Archive for the ‘shorthand’ Category

CSS Shorthand Syntax Considered an Anti-Pattern

Posted on: No Comments
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...