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

De sua opinião onde eu devo melhorar.

Luizocad3 60

@Luizocad3

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


Me ajudem com conselhos. Todos os conselhos são bem vindos.

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Olá @Luizocad3!

Seu projeto ficou ótimo!

Notei que você utilizou margin e padding pra centralizar o card. Essa não é a melhor opção pra centralizar elementos.

📌 Existe uma forma melhor e mais eficiente de posicionar elementos no meio da página (tanto na horizontal quanto na vertical):

  • Aplique isso ao body (Pra funcionar corretamente, não use position ou margins):
body {
    min-height: 100vh;
    display: flex; /*  também funciona com grid  */
    justify-content: center;
    align-items: center;
}

Espero que ajude!

Fora isso, você fez um excelente trabalho!

Marked as helpful

0

Luizocad3 60

@Luizocad3

Posted

@danielmrz-dev valeu, meu camarada. Agora sei o porque nunca centralizava quando eu usava essas propriedades, eu estava aplicando no elemento errado kkkk Muito obrigado por me corrigir, e te espero nos próximos erros kk

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