I have very little experience with frontend/graphic design/etc stuff so sorry if this is obvious!
But like the title says, I want a container such that anything inside the container is automatically scaled to fit. I am hoping there is some obvious basic solution to this that I'm missing. For example, if I have a square container that contains a label, then the label is scaled (maintaining its proportions, so no flattening or narrowing) such that its sides are touching the bounds of the container. I am hoping I won't have to implement this myself, but I'd just like to know either way.