My carousel is working well using HTML Bootstrap. I am trying to add small centered logo images over the carousel images and make them responsive on different devices. Additionally, I attempted to add a button under the logo and have it centered as well. However, in the code below, it's not behaving as expected.
.carousel-caption {
top: 20px !important;
right: 20px !important;
}
.carousel-caption {
position: absolute !important;
top: 50% !important;
/* left: 50% !important;
transform: translate( -50%, -50%) !important; */
text-align: center !important;
color: white !important;
margin: auto;
font-weight: bold !important;
max-width: 500px !important;
background-repeat: no-repeat !important;
}
.carousel-caption img {
max-width: 150px !important;
}
<div class="container-fluid main">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item">
<img class="d-block w-300 " src="assets/images/dgWebsiteImages26.jpg"
alt="First Image">
<div class="carousel-caption">
<img class="" src="assets/images/logo---27.png" style="background-repeat: no-repeat;"
alt="First Image">
<a class="ripple rbutton" href="https://">A Button</a>
</div>
</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>
</div>