I'm looking to adjust the size of an image based on the user's browser window. Here is the code I have so far:
.image {
max-height: 15%;
width: auto;
}
The image class is used in this section of my code:
<ul>
<li>
<img class="image" src="imgs/pie-chart.png">
</li>
</ul>
I want the image to scale down on smaller windows and remain at its maximum size on larger windows. However, despite implementing the code, there are no visible changes to the image when viewed on the webpage. Additionally, I am utilizing bootstrap in conjunction with this code.