Design comparison
SolutionDesign
Solution retrospective
What specific areas of your project would you like help with?
I have a hard time centering the whole container, I already used display block margin auto, and display flex, justify and align but still does not work. I just used margin on the container to center it but it feels wrong
Community feedback
- @thecodefanPosted 5 days ago
hey there, i use this code usually to center an element, use this on the container div position: absolute; width:100%; height:100%; display:flex; justify-content: center; align-items: center;
1
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