DropDown faq Problem

is there any way to not push the box up or when height is increased just incresse the height at the bottom https://github.com/undeadskeleton/FAQ-accordion
GitHub
GitHub - undeadskeleton/FAQ-accordion: Frontend Mentor FAQ accordio...
Frontend Mentor FAQ accordion exercise. Contribute to undeadskeleton/FAQ-accordion development by creating an account on GitHub.
3 Replies
ghoul
ghoulOP2mo ago
added position:absolute and place it using top somehow fixes this but is there any better way
vince
vince2mo ago
If you placed it in a codepen / similar I can take a look if you're still curious to find a better way. I think using absolute is fine here and you could also use a negative margin, just not sure how you have it set up within your css
clevermissfox
clevermissfox2mo ago
align-self: start perhaps depending | margin block end: auto (in a grid or flex container)

Did you find this page helpful?