Trying to align the link with the background image centered but it keeps ending up at the top, even though I specified the sizes and each background image has different dimensions.
https://i.sstatic.net/HMdMx.png
HTML
<section>
<h3>Contact</h3>
<ul id="contact">
<li class="phone"><a href="tel:111-111-1111">111-111-1111</a></li>
<li class="mail"><a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dfb2beb6b39fb2beb6b3f1bcb0b2">[email protected]</a>"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="573a363e3b173a363e3b7934383a">[email protected]</a></a></li>
</ul>
</section>
CSS
#contact {
list-style: none;
padding: 0;
margin: 0;
}
#contact a {
display: block;
min-height: 30px;
background-repeat: no-repeat;
background-size: 30px 30px;
margin: 0 0 0 15px;
padding: 0 30px 0 30px;
}
.phone a {
background-image: url("../img/phone.jpg");
}
.mail a {
background-image:url("../img/mail.jpg");
}