Responsive FAQ accordion with HTML, CSS and Javascript

Solution retrospective
This is the first time I build a FAQ accordion. In this project I learned how to made it and how to make the background image of an element responsive.
What challenges did you encounter, and how did you overcome them?When I tapped on a question, the #faq-container moved a little to the left because scrolling was activated. I solved it just adding a "overflow-y: scroll" to body, there will always be a scroll bar and therefore there will be no annoying scrolling.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Osiel Hernández's solution.
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