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

Responsive, using mobile first, and BEM metodology

@Camoralesh27

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


Hi! Do you have any questions about using BEM?

I´ll read your fedback, it´s very helpfull for me. Thanks

Community feedback

@MaximilianoDanielGarcia

Posted

Hi @Camoralesh27, good job!

I've visited your live site and I've noticed that your component isn't centered. You can do it using either Flex Box or CSS Grid. In this case, I would use CSS Grid, let me show you:

body {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

Also, consider change component's width to 600px and add a padding: 20px to your right side.

I hope these are helpful to you.

Marked as helpful

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