Submitted over 2 years ago
Css Flexbox, Div tag and other important components of HTML
@NitinSaini007
Design comparison
SolutionDesign
Community feedback
- @rafaelvieiracostaPosted over 2 years ago
Hi! @NitinSaini007 You did a great job ✨
I have a tip for you to ensure the centering of your component regardless of the screen:
- Remove the
margin-top: 70px
from your.container
, then add the following code to thebody
:
body{ display: grid; place-items: center; min-height: 100vh; }
0@NitinSaini007Posted over 2 years agoHi! @rafaelvieiracosta Thanks for adding your valuable comment.
0@rafaelvieiracostaPosted over 2 years ago@NitinSaini007 I saw that you applied what I said, but it lacked a
-
in themin-height
to work properlyThanks for reading my comment 👍 Have a good and happy coding
0 - Remove the
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