Vertical pop out menu problems
Posted: Mon Mar 03, 2008 7:25 pm
I am having a bit of trouble with my sub navigation. I have added a page to one of the main menu items but it is not appearing when i rollover the parent. I have attached an image to show the structure of my pages (see pages.gif).
Basically i am trying to create the effect found here: http://themes.cmsmadesimple.org/orangegreyshadow.html
I am using the following content for my template code:
And i am using the following as my menu stylesheet:
I just cant understand why nothing is happening when i roll over the menu. I know i have included images for the menu but i don't think this would have anything to do with it not working.
Any help with this would be much appreciated.
Thanks
stu
Basically i am trying to create the effect found here: http://themes.cmsmadesimple.org/orangegreyshadow.html
I am using the following content for my template code:
Code: Select all
</__body>
<div id="container">
<div id="intro">
<div id="pageHeader">
</div>
<div id="menuBack">
{menu template='cssmenu.tpl'}
<p class="p2"><span></span></p>
</div>
<div id="colorButtons">
<p class="p1"><span></span></p>
<p class="p2"><span></span></p>
<p class="p3"><span></span></p>
</div>
</div>
<div id="linkList">
{cms_module module="news"}
</div>
<div id="supportingText">
{content}
</div>
<div id="footer">
<a href="http://www.stuartbogle.com" title="stuartbogle.com">created by: stuartbogle.com</a> </div>
</div>
</div>
<__body>
Code: Select all
/* Vertical menu for the CMS CSS Menu Module */
/* by Alexander Endresen */
/* The wrapper determines the width of the menu elements */
#menuwrapper {
width: 100%;
}
/* Unless you know what you do, do not touch this */
#primary-nav, #primary-nav ul {
list-style: none;
margin: 0px;
padding: 0px;
width: 100%;
margin-left: 0px;
}
#primary-nav ul {
position: absolute;
top: 0px;
left: 100%;
display: none;
}
#primary-nav li {
margin-bottom: -1px;
position: relative;
}
/* Styling the basic apperance of the menu elements */
#primary-nav a {
display: block;
padding: 5px 60px;
margin: 1px 0px;
background: url(images/nav_normal.gif) left bottom;
background-repeat: no-repeat;
color: #606a70;
text-decoration: none;
backgound: transarent;
min-height:1em; /* Fixes IE7 whitespace bug*/
}
#primary-nav a:hover {
display: block;
padding: 5px 60px;
margin: 1px 0px;
background: url(images/nav_over.gif) left bottom;
background-repeat: no-repeat;
color: #fa661c;
text-decoration: none;
backgound: transarent;
min-height:1em; /* Fixes IE7 whitespace bug*/
}
#primary-nav li, #primary-nav li.menuparent {
background-color: #fff;
min-height:1em; /* Fixes IE7 bug*/
}
/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */
#primary-nav li.menuactive {
background-image: url(images/nav_over.gif);
background-repeat: no-repeat;
}
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav li.menuparent,
#primary-nav li.menuparent:hover,
#primary-nav li.menuparenth {
background-image: url(images/cms/arrow.gif);
background-position: center right;
background-repeat: no-repeat;
}
/* Styling the apperance of menu items on hover */
#primary-nav li:hover,
#primary-nav li.menuh,
#primary-nav li.menuparenth,
#primary-nav li.menuactiveh {
background-image: url(images/nav_over.gif);
background-repeat: no-repeat;
}
/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */
#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;
}
#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 Hack, will cause the css to not validate */
#primary-nav li, #primary-nav li.menuparenth { _float: left; _height: 1%; }
#primary-nav li a { _height: 1%; }
/* section header */
#primary-nav li.sectionheader {
border-left: 1px solid #006699;
border-top: 1px solid #006699;
font-size: 130%;
font-weight: bold;
padding: 1.5em 0 0.8em 0.5em;
background-color: #fff;
margin: 0;
width: 100%;
}
/* separator */
#primary-nav li hr.separator {
display:block;
height: 0.5em;
color: #abb0b6;
background-color: #abb0b6;
width: 100%;
border:0;
margin:0;
padding:0;
border-top: 1px solid #006699;
border-right: 1px solid #006699;
}
Any help with this would be much appreciated.
Thanks
stu