Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

product preview card component main

@rajabmaher

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

P

@sikulamartin

Posted

body { display: flex; height: 100vh; justify-content: center; align-items: center; }

if you use this your wrapper will be automaticly in the middle of the screen, just be carefull when doing responsive with this, i advice you to put the height of the body back to auto, something like this: @media (max-width: 767.98px) { body{ height: auto; } }

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

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