The image you ar seeing is what I would like to achieve.
What I did so far:
<div class="col">
<div class="square">
<img src="images/img1.png" id="img1">
</div>
</div>
this is the css
.square{
position:absolute;
background-color:white;
opacity:0.5;
height:200;
width:200px;
}
#img1{
width:200px;
height: 200px;
}
Thanks for the responses received. I think I haven't been clear with my request. In the image I posted I would like to be able to have an image with a transparent overlay that doesn't cover all the image, but just the "header" part of the image. That's where I have been struggling.