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

You can do vertical centering with margin:auto. Just absolutely position.

And margin collapse was a bad idea, I agree. But HTML had it, before CSS. If anyone is to blame for margin collapse, it's NCSA Mosaic. CSS just needed to describe what already existed.



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

Search: