Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mislz28/public_html/wp-content/themes/css-faq-v2/timeweather/timeweather.php on line 19
  • Tutorials
24 May 2008

Inverted Shift Down Menu

If what you are looking for is intuitive menu, you need not look any further. I’ll tell you how you can make a gorgeous menu for your menu bar. I’m referring to this type of menu called Inverted Shift Down Menu.

This type of menu is one exciting piece of work as a button get activated when the mouse hovers over any of it. The button turns bright red which means that the active button and the sky blue ones are the inactive buttons.

Without further ado, here are the CSS and HTML so you can start working.
jpg
Figure 1. Inverted Shift Down Menu

The CSS Code

<style type=”text/css”>
.invertedshiftdown2{
padding: 0;
width: 100%;
border-top: 5px solid #D10000; /*Highlight red color theme*/
background: transparent;
voice-family: “\”}\”";
voice-family: inherit;
}
.invertedshiftdown2 ul{
margin:0;
margin-left: 40px; /*margin between first menu item and left browser edge*/
padding: 0;
list-style: none;
}
.invertedshiftdown2 li{
display: inline;
margin: 0 2px 0 0;
padding: 0;
text-transform:uppercase;
}
.invertedshiftdown2 a{
float: left;
display: block;
font: bold 12px Arial;
color: black;
text-decoration: none;
margin: 0 1px 0 0; /*Margin between each menu item*/
padding: 5px 10px 5px 10px; /*Padding within each menu item*/
background-color: lightblue; /*Default menu color*/
border-bottom: 8px solid white;
}
.invertedshiftdown2 a:hover{
background-color: #D10000; /*Highlight red color theme*/
padding-top: 10px; /*Set padding-top value to default’s padding-top + padding-bottom */
padding-bottom: 0; /*Set padding-bottom value to 0 */
border-bottom-color: #D10000; /*Highlight red color theme*/
color: white;
}
.invertedshiftdown2 .current a{ /** currently selected menu item **/
background-color: #D10000; /*Highlight red color theme*/
padding-top: 10px; /*Set padding-top value to default’s padding-top + padding-bottom */
padding-bottom: 0; /*Set padding-bottom value to 0 */
border-bottom-color: #D10000; /*Highlight red color theme*/
color: white;
}
#myform{ /*CSS for sample search box. Remove if desired */
float: right;
margin: 0;
margin-top: 2px;
padding: 0;
}
#myform .textinput{
width: 190px;
border: 1px solid gray;
}
#myform .submit{
font: normal 12px Verdana;
height: 22px;
border: 1px solid #D10000;
background-color: black;
color: white;
}
</style>

The HTML Code
<div class=”invertedshiftdown2″>
<ul>
<li><a href=”http://www.dynamicdrive.com” title=”Home”>Home</a></li>
<li><a href=”http://www.dynamicdrive.com/new.htm” title=”New”>New</a></li>
<li class=”current”><a href=”http://www.dynamicdrive.com/revised.htm” title=”Revised”>Revised</a></li>
<li><a href=”http://tools.dynamicdrive.com” title=”Tools”>Tools</a></li>
<li><a href=”http://www.dynamicdrive.com/style/” title=”CSS”>CSS</a></li>
<li><a href=”http://www.dynamicdrive.com/forums/” title=”DHTML Forums”>Forums</a></li>
</ul>
<form id=”myform”>
<input type=”text” class=”textinput” /><input class=”submit” type=”submit” value=”Find” />
</form>
</div>
<br style=”clear: both;” />

Isn’t this a beauty? Share it to your friends and they’ll tell you that you are simply the best guy or gal ever!

Tags:

This entry was posted on 24 May 2008 at 7:34 PM and is filed under Tutorials. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment