Design comparison
Solution retrospective
Please guys let me know where i am wrong or any advice will be good.. :)Happy coding
Community feedback
- @VCaramesPosted over 2 years ago
Good job!
Some Suggestions:
Remove the
padding
from yourbody
and add the following to center your card:min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
Remove everything from your container class except,
border-radius
,background-color
,padding
andwidth
. (Change youwidth
size to 320px)Change your
h2
toh1
and have itsfont-size
to 22px. You never want to skip heading levels; always start withh1
.Remove the
max-width
from yourparagraph
. You want to use margin/padding to get the style you want.Keep up the good work.
Marked as helpful1 - @ComanderPotatoPosted over 2 years ago
Goodjob. I had a look at your code and was wondering about your flex properties in your .container class. If you were attempting to centre your container (QR code container) to the centre of the screen, you have to set the flex properties in the parent container. So the container will be centred depending on the height of the parent. So in your .container class remove margin: 0 auto; and the flex properties and put those flex properties in the body and set the height of the body to be 100vh.
Marked as helpful1
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