I am having an issue with aligning text in a <div>
within an <li>
. The size of the text keeps changing.
This is my HTML:
<li id="button_welcome"><div>Welcome</div></li>
And this is my CSS:
#about_nav li{
height:48px;
width:130px;
margin-bottom:15px;
}
#about_nav li div{
text-align:right;
margin-right:10px;
vertical-align:middle;
}
Does anyone know how I can keep the text centered within the <li>
?
P.S. I had to remove a gradient background on the <li>
because it was causing some issues.
Thanks,
Fraser