Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 4 years ago

Mobile first accordion (Flexbox, SASS, JavaScript) - v2

sass/scss, lighthouse
Iva•120
@Ivuska
A solution to the FAQ accordion card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi, I have updated the solution so only one item is opened and if user clicks the item twice, it is closed.

Any feedback is appreciated, thank you :)

========================================================================

Hi to everyone from Prague ;-)

I have finished my very first challenge using SASS and also a bit of JavaScript. I struggled very much with positioning of the images...

I would be grateful for tips:

  • how to position the images in the easier and more working way - especially in mobile version?
  • did I miss some useful feature from SASS that can be used in this challenge?
  • how to force to close the accordion item/line if another one is opened (so only one accordion item is opened)?

Thank you a lot and happy coding! :-)

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 Iva'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