@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/orpadding
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
@MellTins
Posted
@danielmrz-dev Obrigada por me explicar, eu vou consertar!
@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
@MellTins
Posted
@danielmrz-dev Sua ajuda resolveu a minha dificuldade,espero que não se incomode, pois comecei a segui-lo, um abraço!
@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