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

SASS, PseudoElement, SVG

sass/scss
Benjamin•130
@Benjoow
A solution to the FAQ accordion card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello everybody !

Well...contrary to expectation, i had a lot of problems with this challenge.

  • I worked with background-image and not img tag for training. I'm not familiar with this property and it was ...complicated to sizing correctly my illustration card with background-position and size. I've spend lot of time on it and finally rewrite my HTML structure.

  • I've had a problem with my card height and my illustration in position absolute on desktop version. I had to fix the height of my card and used js for close my accordion item when another one is selected otherwise my image would move on same time.

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