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

Perfil de links sociais

@ThiagoTelheiro

Desktop design screenshot for the Social links profile coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Comentários são bem vindos!

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Fala @ThiagoTelheiro!

Seu projeto ficou ótimo!

Notei que você utilizou margin pra centralizar o card. 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!

0

@ThiagoTelheiro

Posted

@danielmrz-dev, isso seria flexbox? eu ainda não entendi muito bem como funciona, por exemplo quando aplico isso ao body centraliza o main e o footer junto, ai depois como faço para colocar o footer no final do site?

1
Daniel 🛸 44,230

@danielmrz-dev

Posted

@ThiagoTelheiro

Sim, me refiro ao flexbox.

Ele centraliza o footer porque é aplicado ao elemento pai que é o body.

Quando você diz final do site, você quer dizer no rodapé?

0

@ThiagoTelheiro

Posted

@danielmrz-dev, isso no rodapé

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