WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • css sub menus
  • Print
Pages: [1]   Go Down

Author Topic: css sub menus  (Read 4974 times)

Availor

  • Guest
css sub menus
« 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

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]
Logged

Offline marathoner

  • Posts: 495
Re: css sub menus
« Reply #1 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.
Logged

Availor

  • Guest
Re: css sub menus
« Reply #2 on: May 29, 2008, 09:12:25 PM »
Thanks I will check out the templates
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • css sub menus
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2