I'm trying to center a long line of text. Instead of all being on the same line, it's separating over two lines.
Here is the HTML:
<div id="head">
<h1>Hello</h1>
<p><a href="#">Last.fm</a> / <a href="#">Twitter</a> / <a href="#">Dribbble</a> / <a href="#">GitHub</a></p>
</div>
And the CSS:
#head{
border-bottom: 1px solid #ccc;
margin: 0 auto;
width: 760px;
text-align: center;
}
#head p{
line-height: 1em;
margin: 0;
}
And I get this result:
I feel obscenely dumb. There's probably an easy answer to this, but I can't wrap my head around it. Help?