Changing container height dynamically

Changing container height dynamically

  

Hi,

I have three containers. Black border container contains products. Green container shows it has products above the threshold. Red container show below the threshold. I want to change the container's height according to real-time data. Is it possible to change the height of a container runtime?  I have attached one picture get the scenario clear. Thank you in advance.

Regards,

Amreen

Solution

Hi Amreen,

Changing the container height can be achieved by using the proper CSS. I've included an example. Clicking the button will resize the container.

Solution

hi Kilian,

It is reducing the height from bottom, how to do from top?

Hi Amreen,

Did you check the code at all? It's so simple, you should be able to come up with that yourself!