http://70.87.187.178/~thecolla/index.php
The dropdowns display and function in Firefox Mac and Safari Mac, but not IE6 (haven't tested other browsers). I've modified the original Horizontal CSS Menu to work with my layout. Any suggestions? Let me know if I can provide any additional info. Thanks.
Code: Select all
/* Horizontal menu for the CMS CSS Menu Module */
/* by Alexander Endresen */
#menu_vert {
margin-left: 1px;
margin-right: 1px;
}
/* The wrapper clears the floating elements of the menu */
/* Fix for Opera 8 */
.clearb { clear: both; }
#menuwrapper {
/* Fix for Opera 8 */
/* overflow: hidden; */
background-color:transparent;
width: 100%;
}
/* Set the width of the menu elements at second level. Leaving first level flexible. */
#primary-nav li li {
width: 150px;
}
/* Unless you know what you do, do not touch this */
#primary-nav {
list-style: none;
margin-top: 65px; /* To position navigation properly within purple band */
/* Unfortunately, this adds about 65 pixels of padding on top and bottom in IE6, although the navigation is properly positioned*/
padding: 0px;
}
#primary-nav ul {
list-style: none;
margin-top: 5px; /* To position dropdown navigation directly beneath Level1 navigation */
padding: 0px;
position: absolute;
top:0 auto;
display: none;
}
#primary-nav ul ul {
margin-top: 1px;
margin-left: -1px;
left: 100%;
top: 0px;
}
#primary-nav li {
margin-left: -1px;
float: left;
}
#primary-nav li li {
margin-left: 0px;
margin-top: -1px;
float: none;
position: relative;
}
/* Styling the basic appearance of the menu elements */
#primary-nav a {
display: inline;
margin: 0px;
padding: 5px 40px 5px 0px;
text-decoration: none;
color: #bbc7e3;
}
#primary-nav li li {
border: 1px solid #3a4c7d;
padding: 2px 0px 2px 5px;
font-size: .95em;
background-color: #bbc7e3;
}
#primary-nav li li a{
color:#3a4c7d;
}
#primary-nav li, #primary-nav li.menuparent {
background-color:#768ec6*;
}
/* This code below is trying to get active page that visitor is on to stand out.*/
/* Styling the basic appearance of the active page elements (shows what page in the menu is being displayed) Remove the two declarations below to get the menus to treat all pages equally, without identifying page you are currently visiting*/
/* #primary-nav li.menuactive a{
color: #fff; /* let's the top level nav page stand out but...treats it's baby dropdown subpages the same way (not like they should be treated, same as all other dropdowns*/
}*/
/* #primary-nav li li.menuactive a{
color: #000; /* targets the active dropdown subpage*/
}*/
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav ul li.menuparent,
#primary-nav ul li.menuparent:hover,
#primary-nav ul li.menuparenth {
/* arrow for menuparents */
/* background-image: url(images/cms/arrow.gif); */
background-position: center right;
background-repeat: no-repeat;
}
/* Styling the appearance of menu items on hover */
#primary-nav li a:hover,
#primary-nav li.menuh,
#primary-nav li.menuparenth,
#primary-nav li.menuactiveh {
color: #fff;
}
/* Styling the appearance of menu items on hover */
#primary-nav li li a:hover,
#primary-nav li li.menuh,
#primary-nav li li.menuparenth,
#primary-nav li li.menuactiveh {
color: #fff;
}
/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */
/*
just add
#primary-nav li:hover ul ul,
#primary-nav li.menuparenth ul ul ul,
for fourth level
*/
#primary-nav ul,
#primary-nav li:hover ul,
#primary-nav li:hover ul ul,
#primary-nav li.menuparenth ul,
#primary-nav li.menuparenth ul ul {
display: none;
}
/* add
#primary-nav ul ul ul li:hover ul,
#primary-nav ul ul ul li.menuparenth ul,
for fourth level
*/
#primary-nav li:hover ul,
#primary-nav ul li:hover ul,
#primary-nav ul ul li:hover ul,
#primary-nav li.menuparenth ul,
#primary-nav ul li.menuparenth ul,
#primary-nav ul ul li.menuparenth ul {
display: block;
}
/* IE Hacks */
#primary-nav li li {
float: left;
clear: both;
}
#primary-nav li li a {
height: 1%;
}