When designing a website, I encountered an issue where only a portion of the image was displaying in the slider due to the fixed height of the div being set to 500. I want the full image to be displayed centered within the same height.
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="../armando-master/assets/img/Relax.jpg" alt="Los Angeles" style="width:100%; height:50%">
</div>
<div class="item">
<img src="assets/img/blog/1.jpg" alt="Chicago" style="width:100%; height:50%">
</div>
<div class="item">
<img src="assets/img/blog/3.jpg" alt="New york" style="width:100%; height:50%">
</div>
</div>