2 ms·
<center>-al (central) information maybe? but yeah, i understand why they don't standardise it, but still i prefer a working <center> tag over { display
by franze 12y ago
<center>-al (central) information maybe? but yeah, i understand why they don't standardise it, but still i prefer a working <center> tag over
{
display: block;
margin-left: auto;
margin-right: auto;
}
- cozuya 12y agoYou'll need width defined here too..
- dheera 12y agoAgree. And also no valign="middle" in HTML5 <td> elements drives me crazy. I know I'm "supposed" to use CSS, but CSS should be simple. I shouldn't have to fight with silly non-intuitive negative margins and nested div hell just to center something. And then deal with IE's own artistic interpretation of that div hell.
- chc 12y agoYou don't need to use negative margins or anything. You just need the flexible box model (http://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/ http://philipwalton.github.io/solved-by-flexbox/demos/vertic...).