I want to place a play icon on top of an image, which redirects to an youtube page. I also want to have hover effects on the image and icon, the image getting a black background with 0.5 opacity, and the icon just change color. But I'm still stuck on getting the icon in the middle of the image. My jsfiddle: https://jsfiddle.net/rgL0ebj7/.
My code:
.module-box {
display: inline-block;
position: relative;
width: 100%;}
.module-dummy {
margin-top: 100%;}
.module-body {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;}
.play-button-div {
margin: 0 auto;
position: relative;
width: 100%;}
.play-button-icon i{
width: 100px;
height: 100px;
color: #0080ff;
background-color: #fff;
border-radius: 55px;
border: 2px solid #0080ff;
font-size: 80px;
text-align: center;
position: absolute;
padding-top: 10px;
padding-left: 10px;}
Thank you!