Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 09:56:00 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155445 Posts in 21703 Topics by 7731 Members
Latest Member: zvaigzdzius
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Help with Allcss2 dropdown menu  (Read 1903 times)
nicole2292

Offline Offline

Posts: 9


WWW
« on: October 29, 2008, 12:18:53 AM »

Hi All,

I'm am working on a site based around the template "Allcss2 (v2.6, 02/16/2007) with drop-downs".

However I just need to make one small change which I can't seem to manage.

Please view my site here: http://dev.visionfactordesign.com/gardenhurst/

All I want to do is make the background colour on the "functions" button stay white while the user is hovering on the drop-down menu. Seems simple enough, however I can't figure it out.

All help greatly appreciated.

Thanks in advance.
Nicole
Logged

bgg

Offline Offline

Posts: 101



« Reply #1 on: October 29, 2008, 10:34:16 AM »

u need to use a javascript based solution for that.
ls check this site, whr i m now working on
Code:
ww2.chsj.org
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #2 on: October 29, 2008, 06:52:19 PM »

bgg please use the hyperlink button (3rd from the left side) to make a link to a site!
 not the code button...... wink

thanks
Logged

 
vyni

Offline Offline

Posts: 566


« Reply #3 on: October 30, 2008, 01:41:56 AM »

Hi Nicole,

simply add a line like

#nav li.menu-parent a    {background: #fff; color: #5ff; border-bottom: 1px solid #000;}

to Your css-file.
This will solve Your problem


regards from Himberg, nearby Vienna
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
nicole2292

Offline Offline

Posts: 9


WWW
« Reply #4 on: November 05, 2008, 04:52:15 AM »

Hi Vyni,

Thanks for the suggestion, the thing is the class "menu-parent" is not present unless you are actually on one the the child pages. As this menu operates using hover the class needs to be present at all times wherever you are currently in the site.

Thanks anyway,
Nicole
Logged

vyni

Offline Offline

Posts: 566


« Reply #5 on: November 05, 2008, 05:57:14 AM »

Just to make it clear:

You want the menu working as it now works. just the button function You want to be white - all the time - regardless wich state - if mouseover or not - if is parent or not - if it is current or not ?

In that case I would add an unique class to the menu. Than You can control each button separately, every stage of it too.
this is an example
Code:
show_menu2(1,SM2_ROOT,SM2_ALL,SM2_ALL,'<li><a href="[url]" class="[class] butt[sib]">[menu_title]</a>','</li>','<ul>','</ul>',false,'<ul class="adxm menu">');

this adds a unique class like butt1, butt2, butt3 to each menu-button - find out the number of the Function-button (look in source-code) and add this class to Your css-file.

regards from Himberg
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
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!