@danielmrz-dev
Posted
Fala @brunohenriquedeveloper!
Seu projeto ficou ótimo!
Notei que você utilizou margin-top
pra centralizar o card verticalmente. Usar margens 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
@brunohenriquedeveloper
Posted
@danielmrz-dev Obrigado pela dica, ainda não fazia ideia que havia essa possibilidade, com certeza isso me ajudará muito!