Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

Respnsive FAQs accordion SASS only

nodegreecode•430
@nodegreecode
A solution to the FAQ accordion challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

There are several ways to achieve the same result, but I chose to build this accordion using the <details> and <summary> tags because they are a perfect semantic match. The best part was arranging the layout by experimenting with relative and absolute positioning, as well as working with the complex box structure. The component looks great and closely matches the original design. However, this solution also has its downsides.

What challenges did you encounter, and how did you overcome them?

The biggest challenge was figuring out how to keep the layout structured and prevent the accordion from overflowing into the footer or extending beyond the body. Unfortunately, I wasn’t able to achieve this completely. It still remains a mystery to me how to implement it perfectly using <details> and <summary>. Perhaps someone could share some insights on this.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on nodegreecode'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License