4 ms·
<center><div>I'm centered!</div></center>
by joshfraser 13y ago
<center><div>I'm centered!</div></center>
- _mtr 13y agoDRY, 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.
- dangrossman 13y agoWhen requirements change — center { text-align: left }
- userbinator 13y agoA 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.
- peter_l_downs 13y agoThat works great vertically! </sarcasm> Did you even read the article?
- dkersten 13y agoTime to introduce a new tag into the standard! <vertical-center>Hello!</vertical-center>
- joshfraser 13y agoRelax, I'm not recommending anyone actually do it that way. I'm just old and found it humorous that something as simple as centering a div requires an entire article.
- deleted 13y ago[deleted]