profile card

Solution retrospective
how do i centralize a div alone in the middle of the screen
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Evavic44
There are several ways in doing that, all depends on the use case.
div { margin: 0 auto; }
div { position: relative; top: 50%; left: 50%; }
3 Or use a transform property div { transform: translate(50vw, 50vh); }
Join 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