News for hackers. Stuff that matters.
Re:How We Could Write Better CSS by mrxd on Tuesday September 24, 2013 @03:18PM (#6440086)
You're right that this example is no more semantic than inline styles, but that's the extent of the similarities.

If you want to update all the large margins across the app, you can do that in one place. That wouldn't be possible using inline styles.

You can also enforce style guide standards. Only three margin sizes are allowed: small, medium, large. Inline styles obviously allow for much more variability.

Re:How We Could Write Better CSS by masklinn on Tuesday September 24, 2013 @03:27PM (#6440137)
> If you want to update all the large margins across the app, you can do that in one place. That wouldn't be possible using inline styles.

Sure can, your pages are generated, generate the styles from config or constants. There, I fixed it.