5ThirtyOne



Tall wide navigation tabs

Mar 27th 2006
12 Comments
respond
trackback

wide nav tabs

If there is one thing that I am semi-consistent with [in regards to site navigation], it’s wide [tall] tabs. Larger clickable real estate makes it a little easier for readers to get where they want to go without having to position their mouse pointer over the limited click area of standard text links.

Here’s how I achieve tall, wide, and equally spaced tabs.

First, the markup:

<div id="header">
<div id="widetabs">
<ul id="widenav">
<li><a id="link1" href="#">linkone</a></li>
<li><a id="link2" href="#">linktwo</a></li>
<li><a id="link3" href="#">linkthree</a></li>
</ul>
</div>
</div>

Followed by the necessary CSS:

#widetabs {
font-size: 120%;
width: 60em;
margin: 0 auto;
}
#widenav {
background: #7a8356;
height: 12em;
}
ul#widenav {
list-style: none;
margin: 0;
padding: 0;
}
#widenav li {
float: left;
text-transform: lowercase;
width: 9em;
border: 1px solid #656C4A;
border-width: 0 0 0 1px;
}
#link3{
border: 1px solid #656C4A;
border-width: 0 1px 0 0;
}
#widenav li a {
color:#ddd;
text-decoration: none;
line-height:2em;
display:block;
width:9em;
padding-top: 10em;
}
#widenav li a:hover {
color:#eee;
background: #88925f;
}

The above code was tested in IE6, IE7, Opera 8, and Firefox 1.5. Interested in a working demo? Feel free to leave any comments, questions, or feedback.



12 Comments

  1. very cool! you have me thinking now lol

  2. Very nice! err, how can I put something like this on my blog?

  3. Poldo, you’re already running Foliage on your page. The navigation that I used on that theme is a variant of the tutorial above.

  4. Yeah, but how can I make the entire thing stretch into the whole page and act as a header? (I hope you understood the question.)

  5. An explaination in the comments would be long winded. I recommend analyzing the source above, the source code for Foliage Mod, and adapting it for your own use.

    It looks like you’ve already cleared out the header from Foliage on your page, just replace the old header navigation that came with the theme with the code I’ve posted above.

  6. Yes, I was just about to do that but then again, once MrClean is released, I’m gonna redesign it again ~. ‘Just like someone who posted on your flickr…”quit making me redo my site”. (I mean it in a good way, of course.)

  7. I’ve slowed down a bit haven’t I? I’m usually on a 2-3 week turn over rate.

  8. Doesn’t mater. It’s your theme, so you’re the one who has control over when and what to release. We’re only priveleged to have you creating cool themes for us.

  9. So, I used your myspace tutorial thing, and now I want to make these my home, groups, search…buttons. Can I just place them in the css and html code on my profile?

  10. Shaun, not sure if you’re still tracking this, but the above buttons can indeed be dropped into MySpace. There would be some definite tweaking involved as MySpace - in my own experience - does not recognize em’s as units of measurement. Rather than em, you will have to convert into px’s. The entire overwould would definitely accept the tabs though after a little experimenting.

Incoming Links



Leave a Reply

Comments may be held for moderation. If your comment does not appear immediately, do not repost. I reserve the right to remove any inappropriate or off-topic comments. Please use the forum if your comment is not appropriate for the current article.

Flickr Visit »

  • Mmm marshmallow pizza
  • Cirqe lunch transport
  • Vacuum packaged
  • Pre-inflation
  • Covered
  • Compressed filling
  • Filler beat down
  • Airing out
  • Arrived via Fedex
  • SumoSac corner
  • Oddly simple to understand
  • MBA + Dell
  • Boo's new bed
  • Seen in Ballard
  • Warehouse
  • Shadowed
  • Detach washer from bumper
  • Wiring test
  • Grill delete
  • Almost