Design comparison
SolutionDesign
Solution retrospective
well had problem to make it fit in only 100vh , how to do it ?
Community feedback
- @kimodev1990Posted 11 months ago
- To center your container using
height: 100vh;
, you could add in body :-
display: flex ; justify-content: center ; align-items: center ; height: 100vh ;
and no need to use in main tag
margin: 8rem;
- Better to use in font-size em or rem units than px
- You could use clamp ( ) method with font-size to change their sizes according to viewport dimensions, the same implies with margins, paddings, width, etc...
Hope you find this Helpful.
Other than that, Nice work and Keep going on....
1 - To center your container using
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