How do you vertically center align a :before
element. I have tried using vertical-align: bottom
, vertical-align:middle
, vertical-align: -50%
and vertical-align:super
. Nothing I do is bringing the plus symbol down to be vertically center aligned with the text next to it.
Any ideas?
.infoTitles {
color: #2E393F;
font-family: 'Muli', sans-serif;
font-size: 1.5rem;
line-height: 1.5em;
}
.infoTitles:before {
content: '';
vertical-align: super;
float: left;
margin-right: 8px;
background-image: url('https://cdn4.iconfinder.com/data/icons/ios7-essence/22/add_plus-512.png');
background-size: 15px 15px;
width: 15px;
height: 15px;
display: block;
}
<div class="faqBlock">
<div class="infoTitles">How long will I expect to wait for a quote?</div>
</div>