Skip to content
Submitted almost 2 years ago

Responsive FAQ accordion with HTML, CSS and Javascript

@xXOsielXx
A solution to the FAQ accordion challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

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.

Code
Loading...

Please log in to post a comment

Log in

Community 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