5 ms·
And here I am, trying for past 10 years to centre align a div, both horizontally and vertically.
by zuxfer 10y ago
And here I am, trying for past 10 years to centre align a div, both horizontally and vertically.
- yoz-y 10y agoYou probably already know this but just in case: https://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/ https://philipwalton.github.io/solved-by-flexbox/demos/verti...
- mungoid 10y agoYou took the words right out of my mouth(fingers). Was just thinking the exact same thing
- rimantas 10y agoHow about learning some CSS? This "joke" should really be retired by now. I've been doing this stuff 10+ years ago when stills supporting IE5, for fucks sake.
- nsuser 10y agohttp://howtocenterincss.com/ http://howtocenterincss.com/
- afarrell 10y agoYea, I share your pain. However, for this specific problem, you are best off using flexbox because there is a good tutorial for it: http://flexboxfroggy.com/ http://flexboxfroggy.com/
- talmand 10y agoThat joke is too old, there are new things to mock CSS over these days.