Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

<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;
  }


You'll need width defined here too..


Agree. 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.


You don't need to use negative margins or anything. You just need the flexible box model (http://philipwalton.github.io/solved-by-flexbox/demos/vertic...).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: