Design comparison
Solution retrospective
Very proud that I completed this without a tutorial.
What challenges did you encounter, and how did you overcome them?I could not get things to align in the center. I had to make the body's position absolute and make the elements I wanted to center as relative.
What specific areas of your project would you like help with?I do not have any specific areas I would like help with. If there is any way to clean up my code or if I'm using unnecessary stuff I would love to know though.
Community feedback
- @hikawiPosted about 2 months ago
Using absolute for the centering is okay too, as long as it comes out great and is easy enough to maintain, any solution is good.
For me I'd do something like having body be display flex, align items center and justify items center will put everything in the center of the body. Or you can apply margin left and right auto on the card itself, and it will position middle in whatever container it's in.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
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