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 using kuan

@KurtSotto

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feedbacks are always welcome guys <3

Community feedback

Account Deleted

Everything looks nice. Just the centering is a little off. You can try something like this:

At the body:

body {
/* set the height of the body to the full viewport height */
height: 100vh;
 
/* you can do this with flexbox too but grid is a little shorter  */
/* basically centers horizontally and vertically */
display: grid;
place-items: center;
}

For web pages that have a single card like this centered, it's always the go-to approach.

Marked as helpful

1

@KurtSotto

Posted

@arkatsy Thank you for your feedback! I will make the changes you suggested to the website.

1

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