I am trying to get <head> and <head> to align horizontally. I’ve tried using .header_nav { but it doesn’t seem to be working.
float:left;
clear:both;
}
You can check the actual page at http://www.bolistylus.com
Thanks for your help!
<header id="branding" role="banner">
<div class="header_nav">
<div class="head">
<hgroup>
<h1 id="site-title"><a href="/"><img class="title-image" title="Boli Stylus" src="http://www.bolistylus.com/wp-content/uploads/boli-logoLimeBlack.png" alt="stylus for iPad"/></a></h1>
<h2 id="site-description"></h2>
</hgroup>
</div>
<div class="head">
<ul>
<li><a href="/shop">SHOP</a></li>
<li><a href="/about-us">ABOUT US</a></li>
<li><a href="/faq">FAQ</a></li>
<li><a href="/cart">YOUR CART</a></li>
</ul>
</div>
</div>
</header><!-- #branding -->
Here is the css for the stuff inside:
.header_nav ul {
margin: 0;
padding: 0;
text-align: center;
width: 400px;
}
#branding img {
height: auto;
margin-bottom: -30px;
width: 34%;
}
.header_nav {
background: none repeat scroll 0 0 #F3F3F3;
float: left;
}
Floats and clearing are a bear – here’s how I get around it (this isn’t the cleanest, but it works).
First, you need to use float: left; for both divs. Also, you can get later elements to line up better if you go:
Again, the use of a break isn’t the best (there’s better ways, but I can’t get them to work consistently since I’m also somewhat novice), and definitely use CSS and not inline styling.
Edits: I misunderstood you wanting two “head” classes to float – changed it but was beaten to the punch.