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 HTML CSS/SCSS Js

Robertโ€ข 300

@romanrobert

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


Hello,

This challenge was a lot of fun.

Would have loved to handle the JS in a different way. Tried using for loop to iterate over each question but every time an event is triggered on a specific question, the class is applied only to the 1st one.

Tips would be gladly appreciated. :)

Community feedback

Doston Nabotovโ€ข 950

@dostonnabotov

Posted

Hi, there! That looks great! I think, there is a little problem over there. When you open several FAQs, it is overflowing off the card. I guess setting a fixed height is making it happen so. It would be good not to set height, I guess. And, instead, try 'fit-content'. Perhaps, it might work. Everything looks cool! Good luck!

Marked as helpful

0

Robertโ€ข 300

@romanrobert

Posted

@dostonnabotov

Hello,

Thank you for the tips, Will make sure to implement those changes.

Happy Coding!

0
Kamasah-Dicksonโ€ข 5,590

@Kamasah-Dickson

Posted

Your solution looks great and the JavaScript is working it I think hover states are supposed to be black instead of orange. Like your box shadow there.

Besides good job๐Ÿ‘ Happy Coding๐Ÿ‘

1

Robertโ€ข 300

@romanrobert

Posted

@Kamasah-Dickson Hello, I appreciate the feedback. On the given design hover: is orange and only on active state is changing to black.

Happy Coding :)

0
Kamasah-Dicksonโ€ข 5,590

@Kamasah-Dickson

Posted

@romanrobert oh really my bad๐Ÿ˜‚๐Ÿ‘ Happy Coding too bro๐Ÿ‘๐Ÿ˜‚

1

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