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

FAQ Challenge (SVG Doesn't load when used as Background image)

sass/scss, accessibility
Saleh•390
@SalehAbuhussein
A solution to the FAQ accordion card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


  1. I find it hard to put a stable size for the container is there a way to better do it.
  2. I saw people put like min-width and min-height on the body then specifying fixed size on the element container I find it hard to get the purpose of all of this.
  3. When designing of Mobile I added alot of padding so that the SVG doesn't go out of the body half invisible but that screwed the centering part and the fixed width made the Box SVG half seen is there a solution for this type of problems I tried searching but I got nothing.
  4. Github Doesn't shows the SVG if it was used as background-image is there a fix for that (please don't say embed it as inline it looks messy).
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 Saleh'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

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