I am currently working on creating a carousel slider with indicators at the bottom using Bootstrap 4.1.3. However, I have run into an issue where the indicators are not visible, although they still function when clicked on.
I have attempted solutions such as adjusting the z-index and background colors of the indicators, but these have not resolved the problem.
Below is the snippet of my code:
.carousel-indicators {
z-index: 3;
#slide-buttons {
background-color: #999 !important;
background-color: rgba(70, 70, 70, .25) !important;
}
.active {
background-color: #444 !important;
}
}
<div class="carousel slide col-9 mx-auto pt-5 position-relative" data-ride="carousel" id="slides">
<!--Carousel Content-->
<div class="carousel-content carousel-inner" role="listbox">
<div class="slide-1 col-12 carousel-item active" id="slide1">
<h5>Example</h5>
</div>
<div class="slide-2 col-12 carousel-item" id="slide2">
<h5>Example</h5>
</div>
<div class="slide-3 col-12 carousel-item" id="slide3">
<h5>Example</h5>
</div>
</div>
<!-- Carousel Indicators -->
<ul class="carousel-indicators mt-5 pt-5 ">
<li data-target="#slides" id="slides-buttons" data-slide-to="0" class="active"></li>
<li data-target="#slides" id="slides-buttons" data-slide-to="1" class=""></li>
<li data-target="#slides" id="slides-buttons" data-slide-to="2" class=""></li>
</ul>
</div>