Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 07:18:34 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155439 Posts in 21702 Topics by 7732 Members
Latest Member: Smacki
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: A class in show_menu2  (Read 956 times)
Gerben de G.

Offline Offline

Posts: 24



« on: August 20, 2008, 08:21:03 PM »

For the menu i use the code snippet show_menu2.
Works nice, but i have a little problem and i dont know how to solve it (or is it just because i'm a noob? rolleyes)

Anyway, the links on my menu are the standard links, but how can i use another class so that my links are different from the rest of the website? show_menu2 don't has a function for this, or i can't find it.

Thanx for your help,
Gerben.
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #1 on: August 20, 2008, 08:49:46 PM »

Hi Gerben,

the easiest way is to "wrap" the different menu in a different container and then style the subclasses of that container like css.maxdesign.com.a u does ...

Code:
<div id="menu1">
  <?php show_menu(1); ?>
</div>

<div id="menu2">
  <?php show_menu(2); ?>
</div>

the rest is done within the css ... will work with show_menu2() as well.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!