CSS Library: Horizontal CSS Menus: Here
Sliding Doors Tabs Menu
Author: Dynamic Drive
This is a two state rollover tabs menu based on the popular sliding doors technique. It uses two images only, a right and left tab, with each image shifting up and down as the mouse moves over a tab. This ensures a flicker free experience in IE, though it also means the tab images themselves require a little more labor to create.
The "CSS" tab is highlighted, by giving its <li> container an ID of "current."
Demo:
The two images:

The CSS:
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 4 of 5 pages « First < 2 3 4 5 >
Not working in Safari, but works in every other browser. Not sure what the problem is, but Safari is just showing it as a list. :(
thank you so much for the great effort you are making to help web creators in there designing.This is Aziz-light from Morocco.
Hello.. how do I make the buttons taller? They seem to be shorter on my site than even on this page..
Otherwise.. great menu.. I hope someone can help me out.
Otherwise.. great menu.. I hope someone can help me out.
if i use the id=current, it works when i load the page but if i select another tab(the content is all on the same page) how do i get the new tab to stay highlighted.. thank you in adavance.
can anyone tell me how to change the font size in the tabs? thanks. Jose
Hey, thanks for the menu! Nice work.
Very nice! I am combining this with dMenu for a drop-down nav-system and it works beautifully.
None
i want to download this page so please help me further.
Hey great code. So far only tested in Safari & FF in OS X with perfect results.
To clean the code up further, I removed the containing div and added the id to the ul so:
<ul id="slidetabsmenu">
Also, to animate the menu, I redrew the images so that the rollover part of the image (the lower half of the image) was a couple of pixels lower than it was originally. Then by varying the padding on the links, I got the links to drop a couple of pixels too.
Here is links CSS I used. Notice that the padding value goes from 6px 14px 3px 5px to 8px 14px 1px 5px. As long as overall padding height doesn't change there will be no shifting of the content that sits below it.
#slidetabsmenu a span { float:left; display:block; background:url(media/tab-right.gif) no-repeat right top; padding:6px 14px 3px 5px; color: #FFFFFF; }
#slidetabsmenu a:hover span { color: #FFFFFF; padding:8px 14px 1px 5px; }
To clean the code up further, I removed the containing div and added the id to the ul so:
<ul id="slidetabsmenu">
Also, to animate the menu, I redrew the images so that the rollover part of the image (the lower half of the image) was a couple of pixels lower than it was originally. Then by varying the padding on the links, I got the links to drop a couple of pixels too.
Here is links CSS I used. Notice that the padding value goes from 6px 14px 3px 5px to 8px 14px 1px 5px. As long as overall padding height doesn't change there will be no shifting of the content that sits below it.
#slidetabsmenu a span { float:left; display:block; background:url(media/tab-right.gif) no-repeat right top; padding:6px 14px 3px 5px; color: #FFFFFF; }
#slidetabsmenu a:hover span { color: #FFFFFF; padding:8px 14px 1px 5px; }








