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

HTML5&CSS3

@Gabriel0074

Desktop design screenshot for the Single price grid component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


sou novato .

comentario aberto para críticas construtivas ..

em busca das melhorias ... tentando melhorar a cada dia mais ...

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Fala @Gabriel0074!

Seu projeto ficou ótimo!

Notei que você utilizou margin: auto pra centralizar o card. Usar margens, de forma geral não é a melhor opção pra centralizar elementos. O margin: auto centraliza os elementos apenas na horizontal.

📌 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

@Gabriel0074

Posted

Daniel , eu usei porém o conteúdo interno ficou desalinhado dai eu usei o margin auto por esse fator, e como segui a regra da W3C , comecei fazendo o mobile primeiro depois o desktop kkkkkkkkk mas... acho que me perdi e deixei a desejar em muitos fatores kkkkkkkkkk... obg pela dica elas são sempre bem vinda é muito valiosas! tmj irmão @danielmrz-dev

1
Daniel 🛸 44,230

@danielmrz-dev

Posted

@Gabriel0074

A W3C é uma ótima referencia! Uso bastante tbm!

E isso aí é parte do processo mesmo. Continua na abordagem mobile first que é sucesso. Facilita demais o fluxo de trabalho 😁

Marked as helpful

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