I am struggling to create a container that initially fills with text vertically, and then expands horizontally if needed. You can see what I mean in this diagram here: container_diagram
Just like shown in the image - the container has a fixed height that must remain constant. When the text inside overflows, I need the container to expand horizontally, but I'm not sure how to achieve this.
I have attempted various methods, such as using:
width: min-content
but it doesn't expand as desired (https://jsfiddle.net/t8dLo51b/81/).
width: fit-content
however, this option does not allow the text to fill the container vertically first (https://jsfiddle.net/t8dLo51b/83/).