I'm having trouble getting my text to align in a single line. I've tried using vertical-align: middle and vertical-align: bottom... Can someone please assist me? http://jsfiddle.net/2wDEw/
Here is a simple example of what I have:
<div class="logo spanHalf"><a href="#"> My site </a></div>
<nav id="menu" class="spanHalf">
<li><a href="#">Fetured</a></li>
<li><a href="#">Latest Posts</a></li>
<li><a href="#">Contacts</a></li>
</nav>
And here is my styling:
#menu {
float : right;
display:inline-block;
vertical-align:middle;
}
#menu li{
padding : 10px;
display:inline;
vertical-align:middle;
}
#menu a, .logo a {
text-decoration:none;
text-transform:uppercase;
color: black;
font-weight:bold;
}
#menu a:hover, .logo a:hover {
color: red;
}
.logo {
float:left;
display:inline-block;
vertical-align:middle;
font-size : 28px;
}
Desired outcome:
MY SITE FETURED LATEST POSTS CONTACTS