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.8 is now available!


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 »
  • showmenu2 classes
  • Print
Pages: [1]   Go Down

Author Topic: showmenu2 classes  (Read 4579 times)

BartAaldering

  • Guest
showmenu2 classes
« on: July 20, 2008, 10:10:21 AM »
hi all,

i'm struggling with styling a menu using showmenu2()

It's quite straightforward, an inline menu with some css applied to it. The call:

show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL, ' | [a][menu_title]</a>', '', '', '', '[a][menu_title]</a>');

li.menu-current should affect the current menu item, but it doesn't. Well actually it does only the size of the text. [AC] stands for <a> tag including class > What class do they mean?

Can somebody give me the right classes for the current and the normal menu? Or any other way out?

Thanks a alot.
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: showmenu2 classes
« Reply #1 on: July 20, 2008, 01:42:48 PM »
Hi,

you're on the right way, in your example you can format the current like this:
Code: [Select]
li.menu-current a { ... }so it should take all the formating, not only the text-size

[ac] use the same classes , so with [ac] you can format it like this:
Code: [Select]
a.menu-current { ... }or
Code: [Select]
li a.menu-current { ... }
In both cases the same format also for the pseudo-classes a:active - a: hover - etc.

Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

BartAaldering

  • Guest
Re: showmenu2 classes
« Reply #2 on: July 20, 2008, 01:55:17 PM »
thanks for your reply, it was partially helpfull. Now I am able to change the menu-current, but do you have an idea style the whole menu?
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: showmenu2 classes
« Reply #3 on: July 20, 2008, 02:10:18 PM »
Hi,

for example you can put the SM2 call in a div with a class
Code: [Select]
<div class="menu"><?php show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL, &#39; | [a][menu_title]</a>&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;[a][menu_title]</a>&#39;); ?></div>so you can style the menu based on this class:
Code: [Select]
div.menu ul { ...}
div.menu li { ... }
and so on ...

Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

BartAaldering

  • Guest
Re: showmenu2 classes
« Reply #4 on: July 20, 2008, 02:21:20 PM »
if you were a girl, i would kissed you   :wink:
Logged

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

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