473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Menu current page color

Hello,

I am building a website, and I want the current page to be a different color in the menu. I am working via CSS, so I do not think that de body id solution works for me. Could anyone take a look at the code and help me out? Hovering seems to work fine, but I can't get the current page menu item to be highlighted.
(site: http://www.devonk.nu/) (yes it is dutch)
Dec 30 '11 #1
2 2152
drhowarddrfine
7,435 Expert 4TB
Why can't you use the body id solution? That seems what you need to do.
Dec 30 '11 #2
Pepijn Scholten

add the following in ur css file. make sure u change the color code, if needed.
Expand|Select|Wrap|Line Numbers
  1. .current-menu-item a {
  2.     color: ##0066CC !important;
  3. }
  4.  
Jan 2 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Michelle | last post by:
Hi all...again, I can't find a var that contains the referring page (I've looked on PHP.net and in several books)...there is one in ASP, so I am assuming there is one in PHP, too. And, I would...
3
by: JT | last post by:
is there a command in asp to get the name of the current page? furthermore, is there a way to retrieve the name of the current page within an 'included' file (not the name of the included page,...
8
by: Dan | last post by:
When a user clicks on a link in my menu, I want the background color of the link that comes up in the hover to remain on the destination page. My menu looks like this: <div id="adminmenu"> <a...
10
by: Kerberos | last post by:
Is there a way to change the color of a link in a navbar if the address of the link is the current page? For instance if I have: Home - index.php Products - products.php Contact - contact.php...
4
by: Sandy Bremmer | last post by:
I am wondering if the following can be accomplished with javascript (and if so, if you think javascript is an appropriate solution). I'm afraid my javascript skills lack. I need to build a...
3
by: Carolyn Vo | last post by:
I have a datagrid in my web control class that I am trying to get the current rows displayed for. I have enabled paging on the datagrid so if the user is currently on page 3 of 8, and if I have...
3
by: Rhino | last post by:
Yesterday, I reworked the index on my site - http://sfl.london.on.ca - so that they used list markup and I'm quite pleased with them. However, I'm having a problem with one small aspect of the menu...
10
by: Seth | last post by:
If my current page is: www.domainname.com/index.php?menu=man&pageid=mfrs/register $PHP_SELF returns: index.php What function can I use to return: index.php?menu=man&pageid=mfrs/register ...
0
by: jiwas78 | last post by:
Hi there. I am very much a novice with actionscript, and am wondering if anyone can provide an answer for what I want to do: I have a 5-6 page website. At the top of each page I have a Flash menu...
11
by: dominoeffect | last post by:
Hey all! I'm building a site for a friend which uses this Wordpress theme: http://www.felixkrusch.de/about ^ As you can see by visting the site, the title of the current page is always...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.