DEV Community

Discussion on: Creating a collapsible section with nothing but HTML

Collapse
windmaomao profile image
Fang Jin

The tricky part of this piece is always the height of the invisible elements as well as the potential height when it's not visible.

Collapse
jordanfinners profile image
Jordan Finneran Author

Yes, the times I've used it so far, its normally in a group of a few collapsible sections so I've never had to worry about the height too much as I use CSS flex :)

Collapse
jordanfinners profile image
Jordan Finneran Author

What tricks are you having with height? Maybe its something we could work through :D