Design comparison
SolutionDesign
Solution retrospective
Whenever I open an accordion item, the height of the card increases and so the centering using flexbox will shift the entire card up, which is jarring UX. How do I fix this so the card only expands downwards when I open an accordion item, but for the card to still remain centered on the screen?
Community feedback
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