I am working on a side menu that can be resized, and I want it to collapse (set to zero width) when it is empty.
I have considered implementing one of these features individually, but I'm not sure how to make both work together.
Is there a way to adjust the max-width
of the parent container so that the child elements can extend to fill this width?