Design comparison
Solution retrospective
Although i am aware of using media queries for sizing accordion according to different sizes but somehow i feel this is not the most efficient way to do it. Will appreciate any feedback on how to improve from here in CSS of my project,
Community feedback
- @Nipaaaa1Posted 10 months ago
Congratulations on completing this challenge!
There's something you could do to improve the CSS here.
You're using
height: 60%
for the container. While sometimes it's a good thing to do, in this case, usingheight: auto
will make the container height resize according to the content.You will notice the container just collapses if the screen height is smaller.
Anything else is fine, Good Job!
0
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