FAQ Accordion Card

Solution retrospective
-
How can I control the size of my screen so that there is no scrolling?
-
Recommendations?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @thisisharsh7
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 helpful
Join 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