Y
Hacker News
new
|
ask
|
show
|
jobs
by
pcwalton
4125 days ago
It's not hard, really: just use absolute centering [1]. That's actually what "margin: auto" is there for in CSS 2.1; it's a shame they were bad at evangelizing it.
[1]:
http://codepen.io/shshaw/full/gEiDt