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
-
cb21910104yIf it's web then css:
display: flex
justify-content: center
align-items: center
or
display: grid
place-items: center
Smth I'm missing? -
cb21910104y@mundo03 I get the irony, happens to everyone at some point.
My first comment is still valid though 🙃 -
cb21910104y@lupus not necessarily, e.g. if the parent container is already centered the children will be aligned automatically. Otherwise even margin auto is not needed. Correct me if I'm wrong. 🤔
Related Rants
Me : I m experienced enough to build apps nicely.
Also me : Spents half an hour to center a button.
random
css
html