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

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 (32)

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

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.
ooh I don't like the colors
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
Outstanding...Simply outstanding!
Posted by William on 06/21, 11:41 PM
'cmon people. really...

THE SUBMENU WILL NEVER CHANGE ON A STATIC PAGE!

If you want to see the other submenu, create another html file and modifiy the <ul class="selected"> and <li class="selected"> properties to indicate that you are now on a different page.

You can do this thru javascript, hardcoding it into the new page or change it when your backend code generates a new page.'

(jeez)
Posted by burtadsit on 09/12, 09:24 AM
I would do this differently, but nice example nonetheless.
Posted by Stefan Ashwell on 09/15, 03:20 AM
this is hard coded poor code, please go read your books and examples before posting it here like a good thing.
Posted by mowafag omer on 10/23, 05:29 AM
Dosn't go into very much detail just the code, this dosn't keep me on the page very long...
http://www.becomon.com
Posted by Visitor on 02/25, 11:18 AM

Comment Pages 3 of 4 pages  <  1 2 3 4 >


Commenting is not available in this weblog entry.
Copyright 2006-2011 Dynamic Drive Read our Usage Terms before using any of the CSS codes.