I have a very simple situation that I can't seem to resolve. I want to centre the text vertically to the FontAwesome icon. But I can't for the life of me figure out why it's not centering.
I have tried other answers but none seen to utilise the :before CSS definition which is a very accepted way to implement icons.
Here's my code:
#rk-lesson-menu {
display: inline-block;
width: 100px;
height: 60px;
float: right;
text-align: center;
border-left: 1px solid #DDD;
line-height: 60px;
vertical-align: middle;
text-decoration:none
}
#rk-lesson-menu:before {
font: 28px/60px fontawesome;
content: "\f0c9";
padding-right: 3px;
}
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/>
<a id="rk-lesson-menu" class="rk-menu" href="">MENU</a>