First, I would suggest using ul
to transfer links, not h3
, this structure does not make sense. Then I just add an addition to ul
. Here's a cleared markup example:
<article > <header> <h1>This is Title</h1> <nav> <ul> <li><a href="">Home</a></li> <li><a href="">Works</a></li> <li><a href="">Blog</a></li> <li><a href="">Contact</a></li> </ul> </nav> <div class="clr"></div> </header> </article>
And styles:
body { font-family:"Verdana", Verdana, sans-serif; font-size: 1em; font-weight:400; } h1 { font-family:"Century Gothic", Verdana, sans-serif; font-size: 4em; font-weight:400; float: left; margin-left:10px; } header nav { margin-right: 10px; float: right; } nav ul { list-style-type: none; margin: 0; padding: 2em 0 0 0; } nav ul li { display: inline; font-size: 1.2em; font-weight:400; } nav a { padding: 0 1em; border-right: 1px solid #000; } nav li:last-child a { padding-right: 0; border-right: none; } .clr {clear:both;}
Fiddle: http://jsfiddle.net/nBPCG/98/
source share