Hacker News new | past | comments | ask | show | jobs | submit login

Now center div with unknown height vertically :-)

And no cheating by using flexbox!




^ Comment flagged for sadomasochism.


how do you center something on an axis with no limits placed to form a segments. That’s mathematically impossible unless you placed the limits first.


Powerful the Force is, young Padawan, as is the strength of your doubts. Release them you must.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: