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:
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
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 »
Why not use the :first-child?
#ddcolortabs li:first-child {
margin-left: 1px;
}
#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 ? ;)
A great script none-the-less.
Any one know the problem?
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.
keep up the good work.
How can i make tabs change color when they are selected and the others stay in the another color?








