I have been struggling for the past 4 hours to find a solution to scale an image when the browser is resized. The website I am working on uses bootstrap and the image is located in the navbar-brand section. Typically, navbar-brand is used for a logo, but in this case, there is text underneath the logo which is also part of the image.
My goal is to have this image scale proportionately as the browser size changes. I have experimented with various CSS options, but so far, nothing has worked.
Below is my most recent attempt:
.navbar-brand {
max-height: 500px;
}
.navbar-brand img {
max-height: 100%;
height: auto;
width: auto;
}
Any fresh insights or suggestions would be greatly appreciated!