...

View Full Version : Vertical sub menus



<(^^<)KIRBY
02-10-2005, 10:10 PM
Ok, so I already have a regular CSS/HTML navbar on the left side of my page. How do I add a set of vertical submenus under a specific link? Such as, under the products button, having a "software" button, "hardware" tab, and "repair" tab?

Here's my CSS:



body {
background: #E8E8E8;
font: 16px Verdana, sans-serif;
}

#left {
width: 159px;
height: 100%;
background: url(../Pictures/crackback.gif);
float: left;
margin-right: 20px;
}
#right {
width: 75%;
float: right;
}
a:link {color: #104E8B;
text-decoration: none;
background-color: transparent }
a:visited { color: #4169E1;
text-decoration: none;
background-color: transparent }
a:hover { color: #00066;
text-decoration: underline;
background-color: transparent }
a:active { color: #A9ACB6;
text-decoration: underline;
background-color: transparent }
.title { text-align: center}
.floaty {
float: right;
}
#navlist
{
padding: 0 1px 1px;
font: bold 12px Verdana, sans-serif;
background: gray;
width: 13em;
}

#navlist li
{
list-style: none;
margin: 0;
border-top: 1px solid gray;
text-align: left;
}

#navlist li a
{
display: block;
padding: 0.25em 0.5em 0.25em 0.8em;
border-left: 1em solid #AAB;
background: #CCD;
text-decoration: none;
}

#navlist li a:link { color: #448; }
#navlist li a:visited { color: #667; }
#navlist li a:hover
{
border-color: #000066;
color: #FFF;
background: #4169e1;
}
#good {
text-align:center;
}

/* menubar's code altered from http://www.freelayouts.com/generators/generator.php?pg=cssnav */

rmedek
02-10-2005, 10:24 PM
Try this article (http://alistapart.com/articles/dropdowns/).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum