Auto fit section to content

Hey there,
Is there a way to make a section automatically fit it’s height to it’s content without pre-defining the height (using px, % or any other method)?

Thanks
Ori

Actually, this is the default behavior of any div. (A section is a div, a container is a div too).

If you don’t set dimensions, it will expand in height depending of its content. You need to let the height to Auto. (or type Auto or clear what’s inside the box)

2 Likes

Thenks @vincent… I didn’t know that.
so simple :smile:

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.