Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library
 
CSS Library
Submit an original CSS code
CSS Layouts
Online Tools:

Advertise Here

CSS Library: Horizontal CSS Menus: Here

Overlapping horizontal tabs

Author: Dynamic Drive

Using relative positioning and negative margins, this CSS code creates "overlapping" horizontal tabs that each snug up and slightly overlaps the tab to the left of it. There is no mistaking the "selected" tab, with its raised look. Uses two tab images in total to create the entire interface.

Demo:

The two images used:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 10/04/2006

Revision History: None

Usage Terms: Click here

Your Comments (48)

Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.

Comment Pages 2 of 5 pages  <  1 2 3 4 >  Last »

Bill, did you figure out the Opera tweak? Or does anyone else know how?
Posted by Mike Silari on 10/19, 05:05 PM
very nice. I'm still looking for a nice example where the tabs change colors on mouseover...I guess that gets pretty tricky then...
Posted by Adsense Websites on 10/25, 01:50 PM
I would like to center align to see how it looks... Is there any quick css line(s) that will do this?

Otherwise I like
Posted by natty on 11/20, 03:15 PM
Looks nice, but is not valid CSS (which unfortunately seems to be the case with many of the examples on this site). The errors/warnings are fairly simple to fix - if one has experience with CSS. A newbie could FUBAR a menu or layout lickety split, which takes us to my point: I appreciate sites like this one, BUT if you're going to offer examples (which folks may be trying to learn from) shouldn't they be correct in every detail?

Thanks for the hard work, and don't take this comment harshly. It's just MHO. :-)
Posted by ChrisR on 11/24, 11:09 PM
wow.. cool one. will help to understand the properties os css...
Posted by mouli on 11/28, 01:22 AM
Its a good item, however could do with better images :)
Posted by Rick on 12/14, 02:42 PM
Kindly inform how to use this total code for my web site.
Posted by jayanthi on 12/22, 12:25 AM
Hello. I've made some overlapping css tabs aswell.. they also use z-index and popup on hover! check them out at:


http://anythingclose.com/css-overlapping-tabs.php
Posted by Martin on 01/01, 04:43 AM
hi....can i ask on how to center this tab menu?

thanks.
Posted by ayanami on 02/11, 04:03 AM
Did not work on Opera 7. On Firefox it looks OK but when the user changes the font size CTRL -/+ is looks pretty nasty.

I wish sometimes there would be only one browser client on this planet and many problems would be gone.
Posted by anonymous email on 02/22, 01:09 AM

Comment Pages 2 of 5 pages  <  1 2 3 4 >  Last »

Name: (Required)

Email: (Required)

(NOT shown on page)

URL:

(Shown on page if entered)

Comments: (Required)

Supported BB codes: [b], [i], [u], [em], [strike], [strong], [pre], [code], and [blockquote].

Remember my personal information
Notify me of follow-up comments?

Submit the word you see below ("previewing" post does not require it):


Copyright 2006-2008 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
Dynamic Drive DHTML and CSS Code Library