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

Two level CSS Tabs menu

Author: Dynamic Drive

Building on a regular CSS Tabs Menu, this CSS menu supports second level content that can be associated with specific tabs. By giving both a tab and the desired sub content a class of "selected", the sub content becomes visible on the page.

Demo:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 05/07/2006

Revision History: None

Usage Terms: Click here

Your Comments (27)

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 3 of 3 pages « First  <  1 2 3

I love the fact that you developers create these cool menus for us.

A note to complainers:
I don't why you complain you idiots, it's FREE.
<code>ooh I don't like the colors<code>
What the #@$K, then change them you idiot.
If you can't make it then you would break it huh.

Enough Said!
Posted by Westnmatrix on 09/25, 05:11 AM
Nice. I like it, but I would rather have it work with nested lists. Then, you're making even better semantically marked up code.

I think it's possible to fix it.
HTML:
<ul>
<li>Level One Item One</li>
<li>Level One Item Two</li>

<ul>
<li>Level Two Item One</li>
<li>Level Two Item Two</li>
<li>Level Two Item Three</li>
</ul>
</li>
<ul>

Then, with CSS, replace all:
#tabcontent
with:
li ul

I didn't actually test it out. To be honest I'm too lazy and busy right now, but you can review how it's done on CSS MaxDesign's Listamatic2
Posted by SamwiseOfTheChainring on 10/25, 05:58 PM
This horizontal expansions of the main tabs has the big advantage over the normal drop down type of expansions in that it does not hide the main text of the page when it is hovered over by the viewer.I also like the simplicity of manufacturing a site with this menu.
Posted by albufeira on 01/26, 04:03 PM
The Two level CSS Tabs menu code is great. I am having a problem showing the submenus from the other tabs. Any help with this is greatly appreciated
Posted by Mary H. on 02/26, 02:29 PM
Your site is awesome. I love it. I'm always there looking for new stuff to use. I can not tell you in words how much I appreciate you guys. I have linked to your website in 3 different pages of my website.

I'm in love with your Horizontal DD Color Tabs & it is beautiful.(the one that you are using in your own website).

Are you going to make a two level version of this DD Color Tabs in the near future? I would like to use two level version of your DD Color Tabs in my HomePage when it become available.

Thanks a lot,
Bill Dean
Posted by Bill Dean on 03/25, 07:10 PM
hi
Posted by Naresh on 05/26, 11:17 PM
Outstanding...Simply outstanding!
Posted by William on 06/21, 11:41 PM

Comment Pages 3 of 3 pages « First  <  1 2 3

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