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 */
}
Active Menu Items not showing properly
For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Return to “Layout and Design (CSS & HTML)”
Jump to
- Official Boards
- ↳ README FIRST!!!
- ↳ Announcements
- ↳ General Discussion
- Support Boards
- ↳ CMSMS Core
- ↳ Modules/Add-Ons
- ↳ Help Wanted (commercial)
- ↳ Translations
- Community Boards
- ↳ Tips and Tricks
- ↳ CMS Show Off
- ↳ Layout and Design (CSS & HTML)
- ↳ Feature ideas
- ↳ Developers Discussion
- ↳ The Lounge
- International Discussions
- ↳ Czech/Slovak - Česky/Slovensky
- ↳ Danish - Dansk
- ↳ Dutch - Nederlands
- ↳ Aankondigingen
- ↳ Tips en Trucs
- ↳ Vertalingen & Documentatie
- ↳ Hulp gezocht (commercieel)
- ↳ Finnish - Suomi
- ↳ French - Français
- ↳ German - Deutsch
- ↳ BITTE ZUERST LESEN !!!
- ↳ Ankündigungen
- ↳ Installation und Einstellungen
- ↳ Module und Tags
- ↳ Smarty-Tipps und -Tricks
- ↳ Layout und Design
- ↳ Suchmaschinenoptimierung (SEO)
- ↳ HowTo's
- ↳ Übersetzungen
- ↳ Show Off
- ↳ Hilfe gesucht (kommerziell)
- ↳ Stammtisch
- ↳ Hungarian - Magyar
- ↳ Italian - Italiano
- ↳ Moduli/Plugins
- ↳ Lithuanian - Lietuviškai
- ↳ Darbo / bendradarbiavimo pasiūlymai ir paieška
- ↳ Persian / Farsi
- ↳ Polish - Polski
- ↳ Portuguese - Português
- ↳ Russian - русский
- ↳ Предложения и поиск РАБОТЫ
- ↳ Spanish - Español
- ↳ Swedish - Svenska
- Geekmoot Editions
- ↳ Geekmoot 2016
- ↳ Connections and Conversations
- ↳ Geekmoot 2015
- ↳ Geek Moot 2012
- ↳ Locked: Geek Moot 2010
- Old Forums
- ↳ [locked] CMSMS 2.0 Beta
- ↳ Module Developers
- ↳ Closed Issues
- ↳ [locked] Documentation0ld
- ↳ Suggestions, Modifications & Corrections
- ↳ [locked] CMSMS 1.11 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 1.10 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 2.2 Beta
- ↳ [locked] CMSMS MLE fork
- ↳ Modules/Addon patchs
- ↳ [locked] Quality Assurance
- ↳ [locked] Accessability and Usability
- ↳ [locked] Documentation
- ↳ Media and presentations about CMSMS
- ↳ [locked] Installation, Setup and Upgrade