I need to overlay a microphone icon over an image (kind of watermark). Need this icon to be centered horizontally and vertically. The image may be resized depending on the browser size but the microphone should always stay centered.
Below is what i have so far but when image is resized microphone icon is not adjusted.
img {
width: 50%;
}
.featured-img {
text-align: center;
}
.featured-img img {
border: 1px solid red;
}
.watermark {
position: absolute;
margin: 0 auto;
left: -80px;
right: 0;
top: 20%;
width: 0%;
opacity: 0.8;
color: black;
font-size: 1000%;
}
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<div class="featured-img">
<img src="https://www.iconsdb.com/icons/preview/red/cat-3-xxl.png">
<i class="fa fa-microphone fa-5x watermark"></i>
</div>
Try to resize and you'll see that microphone is not correctly placed.