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

Desktop responsive component w/ min and max width

ricardodcc 110

@ricardodcc

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any tips? My procedure is at my GitHub readme file :)

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Olá @ricardodcc!

Seu projeto ficou excelente!

Tenho uma sugestão:

  • Notei que você usou margin pra afastar o card do topo da página e centralizá-lo. Existe uma forma mais eficiente de posicionar um elemento no centro da página, sem o uso de margin ou padding:

Aplique isso ao body:

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

Espero que ajude!

Fora isso, seu projeto está ótimo!

Marked as helpful

1

ricardodcc 110

@ricardodcc

Posted

@danielmrz-dev Thanks for the tip :) I was always doing with margin/padding in the other projects and definitelyit it was not the best way to do it.

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