I want to make a link with a picture symbolizing play next to the text. What is the best way to do this? I wrote this code, but I don't think it's perfectly centered vertically. How can I center it perfectly?
a:after {
content: '';
display: inline-block;
vertical-align: middle;
width: 20px;
height: 20px;
background: url(https://img.icons8.com/material-sharp/24/000000/circled-play.png) center / cover no-repeat;
margin-left: 5px;
}
<a href="#">Watch video</a>