@truongmleon
Posted
I agree with Aditya, CSS Flexbox is generally more useful. I suggest getting use to it as soon as you can. Nevertheless, position absolute is still okay! Your solution is quite nice, keep on learning!
Marked as helpful
Looking to hire developers?
Was it a good idea to go with the position absolute route to center it, or is there a better option?
@truongmleon
Posted
I agree with Aditya, CSS Flexbox is generally more useful. I suggest getting use to it as soon as you can. Nevertheless, position absolute is still okay! Your solution is quite nice, keep on learning!
Marked as helpful
@adityas24
Posted
Hey Johnsey good job! It is always good to learn new tricks and techniques. But in 2022 flexbox and grids are mainly used for centering a block inside another block.
All the best 👍🙂
Marked as helpful
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord