CSS Library: Horizontal CSS Menus: Here
Inverted Shift Down Menu II
Author: Dynamic Drive
This inverted horizontal menu creates tabs where the active tab is both longer and its text offset downwards compared to its less active counterparts. It does this by manipulating the tab's top/bottom padding values plus the color of its bottom border.
Demo:
Alternate, non active hover tabs:
By default moving your mouse over a tab triggers the "active" style on it. If you wish to disable this (as seen in the second example above), replace the rule:
.invertedshiftdown2 a:hover{
"
"
}
inside the CSS code with just:
.invertedshiftdown2 a:hover{
background-color: #D10000; /*Highlight red color theme*/
color: white;
}
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 2 of 3 pages < 1 2 3 >
I think either option can work from a user standpoint. Its more about what you prefer as a designer. Thanks for the tip.
very nice menu, thank you
Hey , thank you very much for this great stuff! Keep up your great work! Greetings Daniel
Nice sample!
Yet, any thoughts on how we might be able to keep the inline <ul> fixed, on a "very" side-ways narrowed window? The menu items ( <li> ) seem to drop down in an asymetrical vertical order. It would be nice if they didn't.
I tried setting width of the <ul> to pixels, as:
.invertedshiftdown2 ul{
width: 500px;
margin:0;
margin-left: 40px; /*margin between first menu item and left browser edge*/
padding: 0;
list-style: none;
}
But, this doesn't help the "search form" much. This time we have a falling form.
So, I've tried setting the position of #myform to "absolute", and setting its left padding to 850px. as:
#myform{ /*CSS for sample search box. Remove if desired */
position: absolute;
float: right;
margin: 0;
margin-top: 2px;
padding-left: 850px;
}
I am a newbie; so, I would appreciate any thoughts on this. Is it a good practice? Should we use margin-left instead? Should we bother to float the "search form" visible on the top-right, up until it meets the menu on the left, as we shrink the window? If so, how?
Thanks.
Yet, any thoughts on how we might be able to keep the inline <ul> fixed, on a "very" side-ways narrowed window? The menu items ( <li> ) seem to drop down in an asymetrical vertical order. It would be nice if they didn't.
I tried setting width of the <ul> to pixels, as:
.invertedshiftdown2 ul{
width: 500px;
margin:0;
margin-left: 40px; /*margin between first menu item and left browser edge*/
padding: 0;
list-style: none;
}
But, this doesn't help the "search form" much. This time we have a falling form.
So, I've tried setting the position of #myform to "absolute", and setting its left padding to 850px. as:
#myform{ /*CSS for sample search box. Remove if desired */
position: absolute;
float: right;
margin: 0;
margin-top: 2px;
padding-left: 850px;
}
I am a newbie; so, I would appreciate any thoughts on this. Is it a good practice? Should we use margin-left instead? Should we bother to float the "search form" visible on the top-right, up until it meets the menu on the left, as we shrink the window? If so, how?
Thanks.
All you guys out there using table based layouts please, please wake up to the 21st century. Tbales are GONE, thier inaccesible and difficult to work with, use the skills of a true web desgner. USE DIVS, XHTML, AND THE MOST PWOERFUL WEB LANUGUAGE AROUND [i think] CSS!
can you help me to add a button you are provided with 6 I need nine
Hi. You know what guys? I think this is very good idea, but I am affraid but not for me :|
The problem with this menu is that the "current" tab is a link - i.e. to itself. The <a href> itself is styled, not the <li>, so that if you remove the link, the whole thing falls apart. Dumb.
yeah im going to have to agree with Joe. The "current" tab isnt shouldnt be styled that way.
I agree with you but I think it is not perfect idea...

