Design comparison
SolutionDesign
Solution retrospective
-
How can I control the size of my screen so that there is no scrolling?
-
Recommendations?
Community feedback
- @thisisharsh7Posted about 2 years ago
Hey Arturo, well done! your solution looks perfect. To control the size of your screen so that there is no scrolling avoid margins for making the content align to the center instead use flex and grid on the parent element. Here remove
margin: 150px auto 50px;
from the.card
and usemin-height: 100vh; display: flex; flex-direction: columns; align-items: center; justify-content: center;
in.main-container
.I hope this answers your query..
Marked as helpful0
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