If you put width: 100%;
onto an element, it will scale according to the container. Let's say this is the browser width. This works great and all.
At some point when you shrink the container, the element will stop shrinking due to the content being bigger than the browser width(container).
Is there a way to get this width where the container stops shrinking down?
The reason behind this is I want to let the container scale up and down until that point, and use css scale to make it fit smaller devices. So, something like this:
Currently I manually find the breaking width and hard code it. This doesn't really work as the content changes this width.
Thanks in advance!