I have the following HTML (Example):
<span>Sign in with</span>
<ul>
<li><a href="#"><i class="icon-facebook"></i></a></li>
<li><a href="#"><i class="icon-twitter"></i></a></li>
</ul>
And the CSS:
span {
display: inline-block;
font-weight: bold;
margin-right: 6px;
}
ul {
display: inline-block;
list-style: none;
list-style-type: none;
margin: 0;
padding: 0;
}
ul li {
display: inline-block;
list-style: none;
list-style-type: none;
margin: 0;
padding: 4px;
}
ul li {
font-size: 2.0rem;
}
I would like the SPAN to be vertically aligned with the Icons in the UL. But I am not able to do it even when applying padding to span.
Any idea on how to solve this?