I recently started working with HTML/CSS and JS, but I've encountered a small issue. I'm using the bootstrap carousel and it's functioning well, but when I try to move the image higher up, black bars appear at the bottom as if my images are being automatically cropped.
Adjusting the "bottom" to 50px causes these black bars, even though my goal is simply to shift the image upwards. Since it's a full image, I know there's content below. Does anyone have any insight into what might be happening?
#img1 {
position: absolute;
bottom: 0;
left: 0;
right: 0;
top: 0;
opacity: 0.5;
<div id="myCarousel" class="carousel slide" data-bs-ride="carousel">
<ol class="carousel-indicators">
<li data-bs-target="#myCarousel" data-bs-slide-to="0" class="active"></li>
<li data-bs-target="#myCarousel" data-bs-slide-to="1"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<div class="overlay-image" id="img1" style="background-image:url(./images/madeira3.JPEG);"></div>
<div class="container">