PDA

View Full Version : Chrome CSS Drop Down (V2.5)



Gareth
04-05-2011, 07:07 PM
1) Script Title: Chrome CSS Drop Down (V2.5)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm

3) Describe problem:

Hi,

I am a real novice when it comes to Javascript and would like some help with this menu.

I have got it all up and running but what I would like to do is have the drop down box center the the link that you hover over. Is this possible?

Kind Regards
Gareth

Nile
04-06-2011, 02:26 PM
In your CSS file, change:


.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #F0F0F0;
}

To:


.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #F0F0F0;
text-align: center;
}

Gareth
04-06-2011, 04:38 PM
Hi Nile,

Thanks for your response.

http://www.birdpc.co.uk/gareth/botolphgreen/ddb.png

I would like the drop down box to be directly centered below the Events link but it is offset to the right. I tried the code that you suggested but it did not work :(

Any further help would be much appreciated!

Cheers

Nile
04-06-2011, 08:45 PM
Please post a link to the page on your site that contains the problematic script so we can check it out.