Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

FAQ Accordion Card

accessibility, sass/scss, vite, itcss
Mahdi Rezaei•500
@MahdiRezaeiDev
A solution to the FAQ accordion card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello everyone, I have completed this challenge but one thing was pretty challenging for me, (the images section) in the mobile view, the order of containers has to be vertical but as all images have absolute position the height of the container becomes zero, I also can't use fixed sizes then I have to use min and max but the problem with the theme is this, as the viewport shranks the position of absolute positioned images also changes. check the live site URL and resize the browser you will notice better. https://mahdisohaily.github.io/faq-accordion-card-main/

I really appreciate your advice. I had the same problem in one other challenge as well.

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 Mahdi Rezaei'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