I am working on a Bootstrap code snippet that showcases an image using the w-100 class to span the full width of the page. However, the challenge I'm facing is making sure the image is visible to users while keeping it small enough so they won't need to adjust their cursor to view the entire image.
<h1 class="text-center p-3 mb-3 mt-3">Welcome to My Place</h1> <!--p is paragraph mb is marginn bottom and mt is margin top -->
<div id="carouselExampleAutoplaying" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="/assault_01.jpg" class="d-block w-100" alt="assault">
</div>
<div class="carousel-item">
<img src="/2023_k_johnson_scholarship_2023.jpg" class="d-block w-100" alt="scholarship">
</div>
<div class="carousel-item">
<img src="books_reading.jpg" class="d-block w-100" alt="books">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleAutoplaying" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleAutoplaying" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div> `
type here
The above code snippet is designed to showcase images in a carousel format using the w-100 class, but there is an issue with the image size being too big for the page.