Im trying to write a simple html page and I want a div to have a black background but kinda translucent.
here is my code:
HTML:
<div class=”transparent-bg”></div>
CSS:
.transparent-bg{
background-color:#000000;
opacity:0.4;
}
my code will make all the contents inside the div transparent as well.