22
Views
2
Comments
CSS - fix container to bottom of parent container with dynamic height
Question

Hello,

I am trying to fix a container to the bottom of its parent container. I've tried using relative position on the parent and absolute on the container but this only works when there is a fixed height for the parent container.

basically I have a container which contains left side and right side children containers. the right side will be a fixed height but the left side has list so it isn't a fixed size. if there is only 1 item in the list then the right side is taller than the left so a container placed at the bottom of the left side will hug the bottom of the list, but I want it to be fixed to the bottom.

I hope that makes sense.


Thanks,

Luke

Rank: #109

Hi Luke,

Do you have the sample for us to see and guide?

Regards,

Swatantra