I am using the Carousel feature in Bootstrap, but it is displaying the images larger than their original size. I am trying to resize the images within the Carousel using the following code snippet:
.carousel .item.left img{
width: 80% !important;
}
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="/media/images/02.jpg" class="d-block w-100" alt="">
</div>
<div class="carousel-item">
<img src="/media/images/05.jpg" class="d-block w-100" alt="">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
Despite trying to resize the images to 80%, they are still displayed at the same size. How can I resolve this issue?