I have a page setup to be responsive and allow for the image to be resized to the max of its container but am still having issues with it causing both vertical and horizontal scrollbars to appear and was wondering how to make them go away.
body{
margin: 0;
padding: 0;
}
#main {
display: flex;
flex-direction: column;
background-color: pink;
height: 100vh;
width: 100vw;
}
footer {
height: 60px;
width: 100vw;
flex-direction: row;
justify-content: center;
text-align: center;
}
main {
background-color: lightblue;
flex-grow: 1;
}
img {
max-height: 100%;
}
<div id="main">
<main></main>
<footer>
<img src="https://via.placeholder.com/90">
</footer>
</div>