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 »
  • Chnage color of menu-current **SOLVED**
  • Print
Pages: [1]   Go Down

Author Topic: Chnage color of menu-current **SOLVED**  (Read 7378 times)

Offline Gerard

  • Posts: 84
  • Gender: Male
    • Gerard Mollema
Chnage color of menu-current **SOLVED**
« on: March 06, 2008, 12:24:33 PM »
Hello Bakers,

For several sites I use showmenu2. But there's one weirdt thing: I cannot change the color of the classes "menu-current, menu-selected and menu-parent".
For example: If I hover over a menulink it changes from blue to orange. I want to remain that orange but after clicking it, it changes back to blue. Things like text-decoration, font-style etc is all working properly but not the color. I think I'm doing or thinking wrong, but what?

Thanks in advance for any answer.

Regards,

Gerard
« Last Edit: March 22, 2008, 11:34:08 PM by Gerard »
Logged

Offline Gerard

  • Posts: 84
  • Gender: Male
    • Gerard Mollema
Re: Chnage color of menu-current
« Reply #1 on: March 22, 2008, 11:56:30 AM »
Nobody??
Logged

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8544
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Chnage color of menu-current
« Reply #2 on: March 22, 2008, 12:28:13 PM »
Hello,

simply style it in css to your wishes.

Matthias
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Chnage color of menu-current
« Reply #3 on: March 22, 2008, 12:41:10 PM »
Do you have a url where we can have a look?

The order of your css items might give problems.

Ruud
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline Gerard

  • Posts: 84
  • Gender: Male
    • Gerard Mollema
Re: Chnage color of menu-current
« Reply #4 on: March 22, 2008, 07:42:21 PM »
Hi Matthias and Ruud,
Thanks for your reply.

@Matthias: I tried styling with css. And I managed to make the menu-items italic  but I can't change the color of it by using
Code: [Select]
#menu li.menu-current, #menu li.menu-selected, #menu li.menu-parent {
font-style: italic;
color: #69f; /*  This color seems not to be working */
}
, nothing happens. Have you any idea?

@Ruud:
Sure: http://www.gerardmollema.nl/templates/gm_b/style.css

Regards,
Gerard
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Chnage color of menu-current
« Reply #5 on: March 22, 2008, 10:52:09 PM »
Hi Gerard,

The li.menu-current only applies to the list item, not the text that belongs to the <a> tag.
Adding the "a" to the line will do the trick.

Code: [Select]
#menu li.menu-current a, #menu li.menu-selected a, #menu li.menu-parent a{
font-style: italic;
color: #69f;
}


Ruud
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline Gerard

  • Posts: 84
  • Gender: Male
    • Gerard Mollema
Re: Chnage color of menu-current
« Reply #6 on: March 22, 2008, 11:33:27 PM »
Hi Ruud,

Damn.... I played with that "a" earlier but put it before the class "menu-xxx" instead of after it. Like this:

Code: [Select]
#menu a li.menu-current, #menu a li.menu-selected , #menu a li.menu-parent {
font-style: italic;
color: #69f; /*  This color seems not to be working */
}

And then it doesn't work. I remember I saw that way of writing in a template, once.

But it works great now!! Thank you very much!

Groetjes,

Gerard
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Chnage color of menu-current **SOLVED**
 

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