Responsive Product Preview Card Component | Insp by Kevin Powell's Sol

Please log in to post a comment
Log in with GitHubCommunity feedback
- @scroft001
If you wanted to get it to the center of the viewport you could add this to the parent element:
main{ display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; }
You could also try using grid but to me that is not as intuitive.
- @Josemario17
great work, but it isn´t in center viweport
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