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

Faq Accordion Main

Francesco 270

@FraCav99

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 are you most proud of, and what would you do differently next time?

What I really enjoy of this challenge is how is easy is to make accordion with just plain html thanks to the tag.

Aside that, I'm pretty happy of the overall results.

What challenges did you encounter, and how did you overcome them?

Unfortunately, at the moment trying to animate the details element is not an easy task and there's no native way in CSS to do it without the support of a bit of JS.

I found different solutions online on how to animate them, but I didn't implement any animation and stick with the default open/close offered natively by the element itself.

I didn't because at this stage I felt it was a bit like cheating trying to recreate the same exact solution, so maybe in the future when I will have a bit more knowledge about how DOM and animation work with JS, I'll try to implement it by myself.

What specific areas of your project would you like help with?

What I really want help to is about the sizing of the background image, cause I set it to 100%, so it will grow a lot on bigger screens.

The positioning of the card doesn't quite match the design. I used grid positioning on body to place items in the center.

I would like to find a way to expand the details not to the top but to the bottom (I've seen solutions that when you expand the details, they do to the bottom)

Hints on the typography would be great as well

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