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

Resolução do desafio com sucesso :)

@JuCanavans

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Esse tive um pouco de dificuldade de entender bem a funcionalidade do GRID, por fim acabei conseguindo concluir com sucesso esse novo desafio! ;)

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Fala @JuCanavans!

Seu projeto ficou ótimo!

Tenha cuidado ao utilizar position: absolute pra centralizar elementos, pois em alguns casos causa bugs e pode fazer parte do conteúdo ser cortado em telas menores, dependendo da altura dos 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!

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