I am trying to get my image to take up half of the width of the div and 100% of the height, but i cant get rid of this white bar at the bottom, can you help me?
.container {
background-color: white;
height: 90%;
width: 60%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border-radius: 8px;
}
img {
max-width: 100%;
border-radius: 8px;
}
\#description {
width: 50%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
<main>
<div class="container">
<div id="photo">
<img src="https://via.placeholder.com/300">
</div>
<div id="description">
<div id="header"> P E R F U M E</div>
<h2 id="name">Gabrielle Essence Eau De Parfum</h2>
<div id="description">A floral, solar and voluptuous interpretation composed by Olivier Polge, Perfumer-Creator for the House of CHANEL.</div>
<div id="price">
<div id="newprice">$149.99</div>
<div id="oldprice">$169.99</div>
<button id="add">Add to Cart</button>
</div>
</div>
</main>
I tried playing with max-width and max-height but it doesn't seem to be working out