Asking div to take 100% height of another div

Hello :slight_smile:

I’m having difficulties to set a div’s height to 100% of it’s parent div.
I know setting 100% height works when the height of its parent is set.

The thing is, the height of that “parent” div depends on the amount of text that it will contain.

My question is: can we ask a div (child) to take 100% of its parent div without setting the height of that parent ? I hope you understant waht I mean, attached are screenshots :slight_smile:

PS: The div child has the red background, its parent div has the yellow background.

Read-only link: https://preview.webflow.com/preview/tlhsierre?preview=c7f1d22b5d43694cddeb46ddd4fd9856

Best,
Anthony


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Problem solved, I somehow used another trick.
I grouped the two div into one container div so that nothing comes under the thumbnail div.

Still wondering if we can set the 100% height of a child object to match its direct parent ? :slight_smile:

Direct parent must have a height set in PX, otherwise, direct parent can be 100%, but the parent of it has to have a fixed height in PX.

1 Like

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