What im trying to do is display a block header-wrapper
that has background opacity. This block contains a image and text. Also i have used background-size: cover;
for a responsive image background.
My problem is I only want the block header-wrapper
background to be opaque but the image too is getting an opaque display. How can this be removed, there have been similar questions asked here related but only concern with the text not been opaque.
HTML
<section>
<div class="header-wrapper">
<p><img src="http://dev3.rezg.net/rezbase_v3Reservations/external-bec/template5/images/flights-hover.png"/></p>
<p>Title 1</p>
</div>
</section>
CSS
body{
width: 100%;
background:url(https://aimlessblonde.files.wordpress.com/2014/10/ab-2.jpg);
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.header-wrapper{
background:rgba(224,74,73,0.99);
padding:5px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px; color:#fff;
opacity: 0.8;
margin:0 auto;
width: 50%;
}
.header-wrapper > p{
display:inline-block;
vertical-align:middle;
}
img {
width: 200px;
}
Example on what im working : fiddle