Design comparison
Solution retrospective
Had a bit of trouble with keeping the top graphic static in mobile view when expanding each question/answer section. Unfortunately after a good amount of tweaking, I was unable to make it static.
Any suggestions on a fix are welcome!
Community feedback
- @JaneMorozPosted over 1 year ago
Hey Travis! Your solution is great π
I think that
.faq-card { justify-content: center; }
is responsible for all this movement. The
.questions
height is changing when you expand a question/answer section and since it should be in the centre of flex-container it moves up and down.I suggest you to:
- remove
absolute
positioning from the.card-title
, you can usepadding
ormargin
to position it. - remove
justify-content: center;
from.faq-card
and usegap
to add some distance between.card-title
and.questions
Keep it up! And good luck π
Marked as helpful1@TravisH-botPosted over 1 year ago@JaneMoroz Thank you very much for the reply! I'll give that a shot and see post an updated solution!
1@TravisH-botPosted over 1 year ago@JaneMoroz Thank you again for your feedback! It got me going in the right direction and I'm a bit closer to the desired result.
1 - remove
Please log in to post a comment
Log in with GitHubJoin 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