Hacker News new | ask | show | jobs
by _mtr 4515 days ago
DRY, though, right? Changing one set of CSS rules is better than hunting down 20 <center> elements when requirements change. Not to mention <center> is deprecated.
2 comments

When requirements change —

    center { text-align: left }
A simple search-and-replace is enough to get all the <center> elements... and chances are when the requirements change, that's the least of the structural changes you'll have to make. IMHO all the CSS purists do is overcomplicate things.