I am new to CSS and I'm trying to create a carousel that is transparent on top of a colored div. Can anyone help me achieve this?
Here is what I currently have: https://i.sstatic.net/1VkR6.png
This is the HTML code I am using:
<div class="second-phase">
<!-- Tab for Carousel-->
<div id="products-page-carousel"></div>
<!--Carousel View-->
<div id="carousel" class="carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" >
<div class="carousel-item active" id="my-carousel-bg" >
<center>
<img src="/media/g01hgi0m/branded-basin.png" alt="Los Angeles" width="30%" height="30%">
</center>
</div>
<div class="carousel-item" id="my-carousel-bg">
<center>
<img src="/media/waqd3xdw/branded-milk-crate.png" alt="Chicago" width="10%" height="10%">
</center>
</div>
<div class="carousel-item" id="my-carousel-bg">
<center>
<img src="/media/g01hgi0m/branded-basin.png" alt="New York" width="30%" height="30%">
</center>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#carousel" data-slide="prev">
<img src="/media/aqrnoaxe/asset-1.png" width="17%"/>
</a>
<a class="carousel-control-next" href="#carousel" data-slide="next">
<img src="/media/xqwj1jpx/asset-3.png" width="17%"/>
</a>
</div>
</div>
Here is my CSS code as well:
.second-phase{
margin-top: -170px;
height: 700px;
}
#my-carousel-bg{
background-color: transparent;
opacity: 2;
}
This is the desired output: