Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

FAQ accordion card using SASS & Vanilla JS

@krisp-dev

Desktop design screenshot for the FAQ accordion card coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Encountered a little problem with the container/card height when the FAQ elements start growing so, had 3 different solutions for that:

  1. let them overflow out of the container and become invisible
  2. set 'height: auto' on the container - this would move the illustration up as the FAQ elements grow and so does height of the container
  3. set 'overflow-y: auto' to add a scrollbar

Ended up going with solution number 2, mainly because the scrollbar is super ugly even after spending time trying to style it.

Feedback is welcome as always!

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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