WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Availor on May 29, 2008, 08:35:58 PM

Title: css sub menus
Post by: Availor on May 29, 2008, 08:35:58 PM
Hello,

I'm trying to create dhtml-like menus using css.

This is the screenshot of how it works when I test this on my computer (http://www.asce.co.il/demo/menu.jpg)

The code used here is this;
Code: [Select]
     <ul id="pmenu">
        <li><a href="#nogo">top leve;</a>
            <ul>
              <li><a href="#nogo">Sub Level 1a</a></li>                 
            </ul>
        </li>
      </ul>

When I use the following code instead of the <a href="#">link</a> it doesn't work.
Code: [Select]
<ul id="pmenu">
        <li><?php show_menu(1,0,1); ?>
            <ul>
              <li><?php show_menu(1,1,1); ?></li>                 
            </ul>
        </li>
      </ul>

What am I doing wrong here?


[gelöscht durch Administrator]
Title: Re: css sub menus
Post by: marathoner on May 29, 2008, 08:44:44 PM
You should only make your menu call once...not twice. This will return your complete menu structure for SEO purposes but allow you to style the menu with CSS. You'll want to use the HOVER attribute and toggle the display from none to either block or inline depending on your needs. Check the "All CSS 2" template in the ADDONS to better understand CSS menus.
Title: Re: css sub menus
Post by: Availor on May 29, 2008, 09:12:25 PM
Thanks I will check out the templates