Page 1 of 1

Active Menu Items not showing properly

Posted: Tue Jan 16, 2007 4:35 am
by nauticalwebd
I have modified my stylesheets for the theme of my website.  I have horizontal and vertical menu's with it that show all the time.  For some reason after making the stylesheet and menu look the way I want the active menu items no longer show in a different color as I had thought they would.  Can somebody help me out, what have I changed?

/********************
MENU
*********************/

/* hack for Internet Explorer */
* html div#menu_horiz {
   /* hide ie/mac \*/
   height: 1%;
   /* end hide */
}

/*
background-color for the entire menu row,
covering 100% of the width and text center-aligned
*/
div#menu_horiz {
   background-color: #333333;  /* background color for the entire menu row */
   width: 100%;
   margin-left:auto;
   margin-right:auto;
   text-align: center;
}

/*
the menu ul box has top and left border,
right border is provided by the li elements
*/
div#menu_horiz ul {
   margin: 0;
   padding: 0;
   border-bottom: 0px solid #C0C0C0;
   border-left:  0px solid #C0C0C0;
   height:2.4em;
}


/* menu list items */
div#menu_horiz li {
   float: left; /* makes the list horizontal */
   list-style: none; /* hides the list bullet */
   margin: 0 ;
   border-right: 1px solid #C0C0C0;
}


/* the links, that is each list item */
div#menu_horiz a {
   padding: 0.6em 4.31em 0.6em 4.31em; /* padding inside the list item box */
   width: auto;
   margin: 1; /* margin outside each list item box */
   text-decoration: none; /* no underline for links */
   color: #FFFFFF;
   display: block; /* IE has problems with this, fixed above */
}


/* hover state for links */
div#menu_horiz li a:hover {
   background-color: #AC1607;
}
div#menu_horiz a.activeparent:hover {
   background-color: #AC1607;
   color: #FFFFFF;
}

/* active parent, that is the first-level parent of a child page that is the current page */
div#menu_horiz li.activeparent a {
   background: #AC1607;
   color: #fff;
}

div#menu_horiz h3 {
   padding: .6em 1em .6em 1.4em; /* padding inside the list item box */
   margin: 0; /* margin outside each list item box */
   text-decoration: none; /* no underline for links */
   color: #fff;
   background: #385C72;
   display: block; /* IE has problems with this, fixed above */
   font-size: 1em;                           /* instead of the normal font size for */
}




/********************
MENU
*********************/
#menu_vert {
   padding-left: 0;
   margin-left: auto;
   margin-right: auto;
   width: 100%;
}

/* third level has some padding to have it stand out */
div#menu_vert ul ul ul {
   padding-bottom: 1em;
   padding-left: 0em;
}

/* menu li block */
#menu_vert li {
   list-style: none;
   margin: 0;
   border-bottom: 1px solid #cccccc;
   display: block;
}

#menu_vert ul ul li {
   border: none;
}

/** fix stupid ie bug with display:block; **/
* html #menu_vert li a { height: 1%; }
* html #menu_vert li hr { height: 1%; }
/** end fix **/

/* first level links */
div#menu_vert a {
   text-decoration:none; /* no underline for links */
   display: block; /* IE has problems with this, fixed above */
   padding: 0.8em 2.5em 0.8em 2.5em; /* some air for it */
   color: #FFFFFF; /* this will be link color for all levels */
   min-height:1em; /* Fixes IE7 whitespace bug */
   background-color: #333333;
}

/* next level links, more padding and smaller font */
div#menu_vert ul ul a {
   font-size: 90%;
   padding: 0.5em 0.5em 0.5em 2.8em;
   background-position: 1.5em center;
}

/* third level links, more padding */
div#menu_vert ul ul ul a {
   padding: 0.3em 0.5em 0.3em 4.3em;
}

/* hover state for all links */
div#menu_vert a:hover {
   background-color: #AC1607;
}
div#menu_vert a.activeparent:hover {
   background-color: #AC1607;
   color: #FFFFFF;
}

/*
active parent, that is the first-level parent
of a child page that is the current page
*/
div#menu_vert li a.activeparent {
   background-color: #AC1607;
   color: #fff;
}

div#menu_vert ul ul li a.activeparent {
   background-position: 1.5em center;
   background-color: AC1607;
   color: #FFFFFF;
}


/*
current pages in the default Menu Manager
template are unclickable. This is for current page on first level
*/
div#menu_vert ul h3 {
   background-color: #333333;
   display: block;
   padding: 0.8em 1.5em 0.8em 1.5em;  /* some air for it */
   color: #fff;                                 /* this will be link color for all levels */
   font-size: 1em;                           /* instead of the normal font size for */
   margin: 0;                                  /* as normally has some margin by default */
}

/*
next level current pages, more padding,
smaller font and no background color or bottom border
*/
div#menu_vert ul ul h3 {
   font-size: 90%;
   padding: 0.3em 2.8em 0.3em 2.8em;
   background-position: 1.4em center;
   background-color: transparent;
   border-bottom: none;
   color: #000;     
}

/* current page on third level, more padding */
div#menu_vert ul ul ul h3 {
   padding: 0.3em 0.5em 0.3em 4.3em;
}

/* section header */
div#menu_vert li.sectionheader {
   border-right: none;
   font-size: 130%;
   font-weight: bold;
   padding: 1.5em 0 0.8em 0;
   background-color: #fff;
   line-height: 1em;
   margin: 0;
   text-align:center;
}



/* separator */
div#menu_vert li.separator {
   height: 1px !important;
   margin-top: -1px;
   margin-bottom: 0;
   padding:2px 0 2px 0;
   background-color: #000;
   overflow:hidden !important;
   line-height:1px !important;
   font-size:1px; /* for ie */
}

div#menu_vert li.separator hr {
   display: none; /* this is for accessibility */
}