We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26931
    • 2,314 Posts
    okay, i see (...a bit clearer...)

    maybe also try my suggestion with parentRowTpl, without setting the template to blank, and see what happens...
      • 21778
      • 223 Posts
      I diden’t notice your past post with "insert code in jmultilevel" before now... hmm!

      But if i do it and return my wayfinder call to the previous one, page goes blank!

      Just to be sure i inserted the code correctly here is an extract from jmultilevel.config.php

      $level = 3;
      $hereClass ="active";

      $outerTpl = ’@CODE:<div id="navigation">
      $parentRowTpl = ’@CODE:<li[+wf.classes+]>[+wf.linktext+][+wf.wrapper+]</li>’;
      <ul class="nav superfish">
      [+wf.wrapper+]
      </ul>
      </div>’;
        • 26931
        • 2,314 Posts
        like this, sorry my post wasn’t clear

        $level = 3;
        $hereClass ="active";
        
        $outerTpl = '@CODE:<div id="navigation">  
        <ul class="nav superfish">
        [+wf.wrapper+]
        </ul>
        </div>';
        
        $parentRowTpl = '@CODE:<li[+wf.classes+]>[+wf.linktext+][+wf.wrapper+]</li>';
        
        .
        .
        .
        
          • 21778
          • 223 Posts
          I don’t understand this solution completely but it works nicely!!

          Now finally, how do i target the new menu items in my css? Before with &categoryFoldersTpl i could just style <li> and <u> in template css.
          Is the best way to give the li a class?´and target in menu css?
          $parentRowTpl = ’@CODE:<li class="nav2"[+wf.classes+]>[+wf.linktext+][+wf.wrapper+]</li>’;
            • 26931
            • 2,314 Posts
            ...you probably need to style those list elements

            there are probably already classes added to the container-list-elements by jquery, you’ll see those if you use firefox-addons like webdeveloper-toolbar or firebug, then check generated source code after DOM is loaded
              • 21778
              • 223 Posts
              Quote from: sharkbait at Mar 06, 2009, 12:55 AM

              ...you probably need to style those list elements

              there are probably already classes added to the container-list-elements by jquery, you’ll see those if you use firefox-addons like webdeveloper-toolbar or firebug, then check generated source code after DOM is loaded

              Useful toolbar^ figured it out... just discovered something frustrating though.. still ie extra bonus effect sad
                • 21778
                • 223 Posts
                  • 26931
                  • 2,314 Posts
                  you need an extra stylesheet for the IEs (best with conditional comments in the header), then check the position for the nested <ul> (submenu) in your menu, try change it to position:absolute; or position:relative; on hovered list items

                  play around with that part of your stylesheet:

                  .nav li:hover ul, .nav li.sfHover ul {
                  	left:0;
                  	top:2.9em;
                  	z-index:99;
                  	}
                  


                  you could also try to give your list-elements, or uls, a padding-right, so the linktext got a bit space
                    • 26931
                    • 2,314 Posts
                    try this in your stylesheet, just to see if it has an effect:
                    div#navigation ul.nav ul {position:absolute; top:30px; left:0px;}
                      • 21778
                      • 223 Posts
                      Padding problem is fixed! Still trying to get submenus straight. Position: absolute/relative is not really working for me, have tried them on all of my :Hover tags.