Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Accordion Card Using Sass and Javascript

@brianlfarmerllc

Desktop design screenshot for the FAQ accordion card coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


This was a good practice working with img layering, positioning and z index priority. Initially I struggled with having the main person image not being allowed to overflow out side its div container while allowing the box to appear like it was coming out of the container.

To solve this I placed the box img out side of the section that overflow: hidden was applied to and used absolute positioning to move the box where it needed to be and it worked nicely.

One thing I wish I could make better is the positioning of the background pattern. Is there a better way to position to make it where it is more responsive. It looks great to me at 1440 X 900 and below but when going larger the positioning gets lost and to make it work like I am currently doing to I will have to add a ton more @ medias to reposition the top and left absolute values.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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