I'm a full time child protection social worker, aiming to make the transition into development!
Wrote my first 'Hello World' in April 2020 and currently learning to be a MEVN stack developer
Great article.
My personal favorite is the flexbox one. However for centering anything in hero section I still go with the Absolute centering.
You summarized all of them neat and clean. Big kudos for that
I'm a full time child protection social worker, aiming to make the transition into development!
Wrote my first 'Hello World' in April 2020 and currently learning to be a MEVN stack developer
I'm a full time child protection social worker, aiming to make the transition into development!
Wrote my first 'Hello World' in April 2020 and currently learning to be a MEVN stack developer
Ah, thanks so much! First article I've written so that kinda feedback makes my day 😁 Best of luck with your page, and happy to receive a question if you're stuck on anything!
I remember when centering something vertically AND horizontally was a hard thing. Now we have neat flexbox and grid and your article explains even more ways. Such a great job with this article.
Good article.
Only thing is you should mention , in the auto margins, that first we need to set the width of an element, then only we can center it otherwise it won't work.
We're a place where coders share, stay up-to-date and grow their careers.
one more, nowadays not that usefull
Cool! I've actually never used display: table; for anything but just reading about it now, interesting property! Thanks 😁
This is the way we are using for old browsers fallback, in the worst case you have to use table elements directly.
Great article.
My personal favorite is the flexbox one. However for centering anything in hero section I still go with the Absolute centering.
You summarized all of them neat and clean. Big kudos for that
Cheers! Still very much a newbie, and first dev article of any kind I've written so means a lot 😁
You just did a pretty good job 👍
This was REALLY helpful for me today. Solved a couple of hours long "WHY won't this move?!" meltdown when I wanted to centre grid items. Thank you!
Ah, thanks so much! First article I've written so that kinda feedback makes my day 😁 Best of luck with your page, and happy to receive a question if you're stuck on anything!
I remember when centering something vertically AND horizontally was a hard thing. Now we have neat flexbox and grid and your article explains even more ways. Such a great job with this article.
With so many different ways to center elements with CSS, it's a wonder I keep forgetting then 9 times out of 10. 🤣
came here to see place-items: center
was not disappointed 😂😂
Super helpful, thanks! I feel like positioning in CSS is the perfect mix of math and art. Which is what makes it so hard to grasp sometimes!
I regularly forget about margins.
Great article, thx for the explantion of each different method
Good article.
Only thing is you should mention , in the auto margins, that first we need to set the width of an element, then only we can center it otherwise it won't work.