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

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:

The HTML:

Code Info

Rate this code:

Date Posted: 08/10/2007

Revision History: None

Usage Terms: Click here

Your Comments (25)

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.
Posted by Dave on 11/09, 08:31 PM
very nice menu, thank you
Posted by tetrix on 11/15, 01:18 AM
Thanks for this very good article …
Posted by szafy metalowe on 11/20, 05:11 AM
Hey , thank you very much for this great stuff! Keep up your great work! Greetings Daniel
Posted by Muskelaufbau on 12/16, 06:07 AM
good menu
Posted by eUsaDomain very Cheap Domain on 01/05, 12:58 PM
Thanks for the interesting article. Greetings
Posted by Michael on 01/23, 01:16 PM
its great. i hope i can able to use these.
Posted by önder on 01/23, 04:27 PM
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.
Posted by Serdar on 02/03, 05:28 PM
great stuff here guys
Posted by Life Path on 03/03, 03:41 AM
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!
Posted by Dan on 03/08, 04:15 AM

Comment Pages 2 of 3 pages  <  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 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
Dynamic Drive DHTML and CSS Code Library