WebsiteBaker Support (2.8.x) > Templates, Menus & Design

show_menu2 question

<< < (2/3) > >>

jschor:
Thanx for your help Funky_MF and Christian. It seems to work (although i don't understand a thin of it) but messes up the CSS. What do i have to do. Add another class or....??

Funky_MF:
What kind of template you're using ? Can you show us the CSS-Code ?

jschor:
It is a template i made myself. But i copied and slightly altered the navigation part of the allcss2 template. This is the CSS part of the menu.

#navContainer {
                width: auto;
                background: url(../../media/template/bg.jpg) repeat-x;
                height: 36px;
                display:block;
                clear:both;
                                }


/* Remove List Formattings
~~~~~~~~~~~~~~~~~~~~  */
 ul.menu, li.menu {
   list-style-type: none;
   margin: 0px;
   padding: 0px;
}

/* Header menu */   
#header_menu {position: absolute; margin-left: 20px;}
#header_menu li {line-height: normal;}
ul#header_menu  {z-index: 10; clear: both;}

#nav {
   
   border-top: 0;
   padding:0;
}
#nav ul {
   list-style-type: none;
   margin: 0;
   padding: 0;
   font-size: 10px;
   text-transform: uppercase;
   width: auto;
   /*
   (Disappearing List-Background)
   http://www.positioniseverything.net/explorer/ie-listbug.html
   */
   position: relative; /* Fix the Stupid IE6 Bug */
}
#nav ul li {float: left; color: #fff; text-align: center; font-weight: normal;}
#nav ul li a {display: block; padding: 5px 11px; padding-bottom: 8px; padding-top: 8px; color: #fff; text-decoration: none;}

/* Root Level Link Formatting */
#nav ul li a:hover, #nav li a:focus {background: #444444;  color: #f094f1; background: url(../../media/template/bg_footer_07.jpg) repeat-x;}
#nav li a:active, #nav ul li a.active {background: #444444;  color: #f094f1;background: url(../../media/template/bg_footer_07.jpg) repeat-x;}

/* Current page Customisations*/
#nav li.menu-current a      {background: #401044; color: #fff; }
#nav li.menu-current a      {font-weight: bold;}

/* 2nd Child menu */
#nav .menu li ul {position: absolute; width: 12em; margin: 0; display: none; text-transform: none;  border-top: 0; font-size: 100%;}
#nav .menu li ul li {width: 12em; text-align: left; font-weight: normal; margin: 0; padding: 0; line-height: 1.2em;}
#nav .menu li ul a {width: 11.5em; padding: .6em .1em .6em .4em; background: #4b4c4d; color: #fff; border: 0;}

/* 2nd Child link hover */
#nav .menu li ul a:hover {color: #4b4c4d; background: #666; border: 0; color:#fff;}

/* Show and hide */
#nav .menu li:hover ul, #nav .menu li a:focus ul, #nav .menu li.subMenu ul {display: block;}
#nav .menu li ul ul { display: none;}
#nav .menu li:hover ul ul, #nav .menu li.subMenu ul ul {display: none;}
#nav .menu li:hover ul, #nav .menu li li:hover ul, #nav .menu li.subMenu ul, #nav .menu li li.subMenu ul {display: block;}


/* 3rd Child Menu Appreances */
#nav .menu li ul li ul li a    { width: 11.5em; padding: .6em .1em .6em .4em; background: #c6c6c6; color: #fff; }

/* Positioning the Pop-out Drops */
#nav li {position: relative;}

#nav ul ul ul {
   position: absolute;
   top: 1px;
   left: 100%;
}




/* end menu */
/*  Float containers fix: */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
/*  \*/
* html #clearfix {
   height: 1%;
}
/*  */


Funky_MF:
I think there's a Problem with the generated HTML-Code at the Menu:


--- Code: ---<!-- snip //-->
<li class="menu-expand menu-sibling">Eten &amp; drinken
  <ul class="">
  <li class="menu-first"><a href="http://195.238.74.250/~amstel/wb/pages/eten-drinken/lunch.php" target="_top">Lunch</a></li>
<!-- snip //-->

--- End code ---

There's no closing </li> -Tag   if class="menu-expand", so try to change the showmenu2-call.

Funky_MF:
For further information & help check this:

http://forum.WebsiteBaker.org/index.php/topic,2584.0.html

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version