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 Card-Product

@MellTins

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


What are you most proud of, and what would you do differently next time?

-I had a lot of difficulty figuring out how to start this project, I did it several times because it wasn't looking like the design -It's not 100% yet, but I put it up to receive feedback and tips from my colleagues.

What challenges did you encounter, and how did you overcome them?

  • The width in the design ended up being very far from the final product and that really bothered me
  • Some breakpoints confused me so I decided to leave just one.

What specific areas of your project would you like help with?

  • how to set breakpoints
  • how to make the card smaller on large screens

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Hello there!

Congrats on completing the challenge!

Your project is looking fantastic!

I'd like to suggest a way to make it even better:

  • Using margin and/or padding isn't always the most effective method for centering an element.

Here's a highly efficient approach to position an element at the center of the page both vertically and horizontally:

📌 Apply this CSS to the body (avoid using position or margins in order to work correctly):

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

I hope you find this helpful!

Keep up the excellent work!

Marked as helpful

1

@MellTins

Posted

@danielmrz-dev Obrigada por me explicar, eu vou consertar!

1
Daniel 🛸 44,230

@danielmrz-dev

Posted

@MellTins

Por nada!

Espero que ajude!

Não notei que você era brasileira, da próxima vez comento em português mesmo ✅

Marked as helpful

0

@MellTins

Posted

@danielmrz-dev Sua ajuda resolveu a minha dificuldade,espero que não se incomode, pois comecei a segui-lo, um abraço!

1
Daniel 🛸 44,230

@danielmrz-dev

Posted

@MellTins

Que bom que foi útil, Melissa!

Não me incomodo nem um pouco.

Em caso de você ter mais alguma dúvida, eu costumo deixar meu contato do discord pro pessoal aqui na plataforma: danielmrz.

Fique à vontade pra me contatar por lá, se quiser.

Um abraço!

Marked as helpful

1
P

@fullsnackdevj

Posted

hi!, i think workout more closely on how the design looks like. Everything is good!

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