
Pagina Responsiva de Qr Code com Flexbox em Html e Css
Design comparison
Solution retrospective
I most proud of use flexbox correctly
What challenges did you encounter, and how did you overcome them?the hardest challange is center this div, but in one study day about flexbox i do
What specific areas of your project would you like help with?Center Div's
Community feedback
- @MarziaJaliliPosted about 2 months ago
Congratulations on finishing the project!
Here's a simple suggestion:
- set the code below in the body selector to center the card:
body { display: grid; place-items: center; min-height: 100vh; }
- Make sure that the card is the only child element of the
<body>
.
If not wrapp everything nested inside
<body>
with the<main>
element. It will look something like this:<body> <main> <!-- every element nested inside --> </main> </body>
It definitely works!
😁😁😁
0 - P@xuaunPosted about 2 months ago
You probably had trouble centering the div because you didn't put a
height: 100vh
and thedisplay:flex
on your<body>
(which is the parent element of your.Centro
. A suggestion for centering would be to add the style to the body:body { height: 100vh; display: flex; justify-content: center; align-items: center; }
0
Please log in to post a comment
Log in with GitHubJoin 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