I am having an issue with vertically centering text inside of a DIV using CSS. I have tried the solutions posted in here and I can't seem to get it to work correctly. Any suggestions?
The CSS
#navigation {
position: fixed;
width: 100%;
height: 40px;
background-color: #333;
right: 0;
left: 0;
margin-right: auto;
margin-left: auto;
margin-top: 0px;
z-index: 999 ! important;
text-align: center;
font-family: 'Droid Sans Mono', sans-serif;
text-transform: uppercase;
color: #FFF;
line-height: 40px;
}
span {
display: inline-block;
vertical-align: middle;
line-height: normal;
}
The Markup
<div id="navigation"><span><img src="images/nav_logo.png" /> <font face="Droid Sans Mono"><a href="http://www.hubblive.com/news/">NEWS</a></font></span></div>
Any information would be great, I am quite the amateur.