Codepen

Absolute Centering in CSS

We’ve all seen margin: 0 auto; for horizontal centering, but margin: auto; has refused to work for vertical centering… until now! [CodePen height=800 show=result href=gEiDt user=shshaw ]   See full documentation  

Scroll to Top