Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Could someone provide an example? I'm not into web development but it seems really interesting
-
Oh I feel sorry for web devs, I think they are the most suffering devs on earth, I do have similar problems in mobile development but non that make me suffer like this one
-
ctrlz11657yhttps://jsfiddle.net/7fz4o16q/1/
Looks like jsfiddle is not a brilliant mobile service. Anyway, idea is clear. -
SSDD47607yIf this works it's a good find. I normally do
Display: flex;
Align-items: centre;
Text-align: centre;
Oke so this just happened...
Spent 30 minutes figuring out why the f**k a div was vertically centered within another one.
Apparently margin:auto within a display: flex not only centers horizontally but also vertically.
I remember the days when i spent hours vertically centering sh*t. What universe are we in?
undefined