I am seeking to vertically align the phone number and email address with the little icons next to them. When I try to adjust the line-height, it affects all the li
's in that section. I believe this is because they are inline elements. Here is the website and the corresponding CSS.
LINK: www.matthewtbrown.com/newsite
HTML:
<ul class="contact">
<li><img src="http://s7.postimg.org/64ux9a1if/email.png"></li>
<li class="contacttext"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b9d4dbcbd6ced78e8df9cbd6dad2dccdd4d8d0d597dad6d4">[email protected]</a></li>
<li><img src="http://s7.postimg.org/g0w08x7af/phone.png"></li>
<li class="contacttext">978-761-1205</li>
</ul>
CSS:
.contact {
color: #fff;
text-align: center;
float:none;
}
.contact > li {
display: inline;
}
.contacttext {
font-size: 19px;
padding-left: 5px;
}