Streaming live at 10am (PST)

Auto fit section to content


#1

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


#2

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)


#3

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


#4

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