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

Advertise Here

CSS Library: Horizontal CSS Menus: Here

DD Color Tabs

Author: Dynamic Drive

This is a lightweight, very easy to customize image tabs menu similar to the one you see throughout Dynamic Drive. Instead of swapping between two tab images, this menu uses a unified transparent tab instead. What this means is that you can in fact change the menu and menu hover colors just by changing the two color values inside the CSS code! It doesn't get simpler than that.

The two colors used in this menu are: #8b0000 and #d50509. Just by changing these two colors, you instantly create a different theme for the menu tabs. There's no need to touch the images in any way unless your page's background image isn't white. In that case you'll have to modify the images' corners' background color so they match that of the page's.

Demo:

 

The two images (resized for easier download):

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 05/07/2006

Revision History:
June 12th, 06': Fixed HTML code for separator bar height issue in IE.

Usage Terms: Click here

Your Comments (79)

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 8 pages  <  1 2 3 4 >  Last »

Any idea for how to use the current tabs with IFRAMES?
Posted by Occasio on 05/12, 07:51 PM
ddadmin:
Why not use the :first-child?

#ddcolortabs li:first-child {
margin-left: 1px;
}
Posted by Judofyr on 05/14, 04:33 AM

#ddcolortabs li:first-child {
margin-left: 1px;
}


^^ Works great. Aside from that, out of the box, I was having issues with the tabs spanning on top of one another, as well as the LAST tab not being "clickable" in the most recent Opera.

I ended up cleaning up the CSS a bit to make it all work. Either way, thanks for the idea and examples.

When can we expect v1.1 ? ;)
Posted by Mike Reid on 05/17, 03:39 PM
Too bad this is the one used on DD already. Most people who care about what your menus look like will recognize it.

A great script none-the-less.
Posted by Nathan on 05/29, 10:07 AM
Dynamic Drive is the best ever!
Posted by litew8 on 06/05, 06:35 AM
I really want this theme but there seems to be some real big problems with IE. I have my menu working great in firefox but the border-top which shows the white line between the bottom bar and menu is about 15px on IE but normal on ff.

Any one know the problem?
Posted by dave on 06/11, 05:16 AM
Hi Dave:
The problem with the bar height in IE can quickly be fixed by adding a blank space inside the DIV for the bar. I've updated the HTML code above for this.
Posted by ddadmin on 06/12, 11:53 AM
nice one. thanks.

keep up the good work.
Posted by dave on 06/12, 11:56 AM
One problem is that when i select a tab it should change color to say that was the selected tab but it doesn´t, only the tab that as id="current" stays in a diferent color.
How can i make tabs change color when they are selected and the others stay in the another color?
Posted by Viajante on 06/13, 10:30 AM
just change the id of the page that is selected. so move the id="current" to the selected page on that page.
Posted by dave on 06/13, 10:35 AM

Comment Pages 2 of 8 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