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

HTML and CSS only, layout with flexbox

@Cheung-KaWai

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


Hi, When I toggle a question to show the answer It makes my whole card grow (which it's normal) but is It possible to keep the top part of my card fixed and only let it grow on the bottom part? If there are any other things that can be optimized please let me know :)

Thank you in advance for feedback!

Community feedback

DIICA99 115

@DIICA99

Posted

The design looks very good on my phone... As I don't have my computer right now to check it there. Beautiful, nice job 👍

0

@DxnielXndrew

Posted

Try playing around with the height of the main container. Try setting the value to max-content and see what happens. I'm not sure if it will work. It may have worked for me, if I remember correctly

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