News for hackers. Stuff that matters.
Re:The complete guide to centering a div by joshfraser on Sunday February 02, 2014 @04:04PM (#7167573)
<center><div>I'm centered!</div></center>
Re:The complete guide to centering a div by _mtr on Sunday February 02, 2014 @04:07PM (#7167583)
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.
Re:The complete guide to centering a div by dangrossman on Sunday February 02, 2014 @05:43PM (#7167921)
When requirements change —

    center { text-align: left }
Re:The complete guide to centering a div by userbinator on Monday February 03, 2014 @06:18AM (#7170031)
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.
Re:The complete guide to centering a div by peter_l_downs on Sunday February 02, 2014 @04:17PM (#7167627)
That works great vertically! </sarcasm> Did you even read the article?
Re:The complete guide to centering a div by dkersten on Monday February 03, 2014 @09:21AM (#7170707)
Time to introduce a new tag into the standard!

<vertical-center>Hello!</vertical-center>

Re:The complete guide to centering a div by joshfraser on Sunday February 02, 2014 @04:23PM (#7167643)
Relax, 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.