News for hackers. Stuff that matters.
Re:Plugging a 1986 Mac Plus into the Modern Web (2013) by rgro on Sunday March 22, 2015 @10:35PM (#9249210)
Although it was a little late to the party, flexbox solves a bunch of issues with css layouts.

Here's a working example that doesn't use tables: https://jsfiddle.net/q8zxxr3b/

Or, here's the inline example:

  <div style="display: flex; height: 100%; flex-direction: column; align-items:center; justify-content: center;">
      <div style="text-align: center;">
          <h1>Hello world</h1>
          The following green square should be centered:<br />
          <div style="display: inline-block; width: 30px; height: 30px; background: green;"></div>
      </div>
  </div>
Re:Plugging a 1986 Mac Plus into the Modern Web (2013) by lisper on Sunday March 22, 2015 @11:22PM (#9249341)
No, you have to vertically center it as well. Horizontal centering is fairly easy even with flex-box.
Re:Plugging a 1986 Mac Plus into the Modern Web (2013) by nostrademons on Monday March 23, 2015 @01:12AM (#9249582)
Vertically centered on Chrome Mac as well. Safari (and IE) still requires a vendor prefix to use flexbox, but with that added, it works in Safari as well:

https://jsfiddle.net/k281a8v0/

Re:Plugging a 1986 Mac Plus into the Modern Web (2013) by lisper on Monday March 23, 2015 @01:54AM (#9249652)
Congratulations, yours is the first solution I've seen that actually works.
Re:Plugging a 1986 Mac Plus into the Modern Web (2013) by simcop2387 on Sunday March 22, 2015 @11:34PM (#9249371)
This does appear to be vertically centering it, at least in Firefox.
Re:Plugging a 1986 Mac Plus into the Modern Web (2013) by sim0n on Monday March 23, 2015 @01:10AM (#9249580)
That does vertically center the content.