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

Responsive FAQ accordion using js and flex

@MyadVushka

Desktop design screenshot for the FAQ accordion coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What is the best way to create the FAQ div in this case? Is it require to be position: absolute? Give please the best ways to create it and to create an accordion

Community feedback

Yoga 240

@yogskr

Posted

Hey, the design looks great!

As for your question, I used position: relative and set the top to specific px. Therefore, the container stays where it is as we apply the 'accordion' functionality.

Marked as helpful

1

@MyadVushka

Posted

@yogskr thank you

0
Yoga 240

@yogskr

Posted

@MyadVushka no problem!

0

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