I want to put text in semitransparent div, and here is what I've done.
Html
<div class="overlay_image">
<div>
<h1 class ="slogan">In div</h1>
</div>
</div>
<h1 class ="slogan">Out of div</h1>
CSS
.overlay_image {
width: 800px;
height: 160px;
background: #0066CC;
opacity: 0.35;
}
.slogan{
opacity: 1;
}
However, I want the color in div
is equal to the color out of div
. I don't want the words In div
become semitransparent.