need help with css in navigation menu

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
gEnTi
Posts: 22
Joined: Thu 22. Apr 2004, 13:19
Contact:

need help with css in navigation menu

Post by gEnTi »

I'd like to have white font color on mouseover(table row and text). My actual CSS looks like this:

Code: Select all

.nav_table a:active, .nav_table_active a:active, .nav_table_active a:visited, .nav_table_active a:hover, .nav_table_active, .nav_table_active a, .nav_table_active a:link  {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	font-weight: bold;
	text-decoration: none;
}

.nav_table a, .nav_table a:hover {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	font-weight: normal;
	text-decoration: none;
}

.nav_table a:link, .nav_table a:visited {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 12px;
	color: #737ECE;
	font-weight: normal;
	text-decoration: none;
}
As you can see, it should be white. Why is it not?

The mentioned site is: http://www.saturn.ch/index.php

=======

Ich habe eine Seite bei der ich bei einem MouseOver weisse Schrift haben möchte, dies trifft aber in meinem Fall nicht zu. Wo liegt der Fehler?
Die Seite die es betrifft ist http://www.saturn.ch/index.php (siehe Menü zur linken)
jscholtysik

Post by jscholtysik »

Hi gEnTi,


what browser do you use? When I use Firefox, I have the same problem.

When I use IE 6.0, it works... :-)


Joachim
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

try it by changing this

Code: Select all

.nav_table a:link, .nav_table a:visited {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 12px;
	color: #ffffff;
	font-weight: normal;
	text-decoration: none;
}
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
gEnTi
Posts: 22
Joined: Thu 22. Apr 2004, 13:19
Contact:

Post by gEnTi »

jscholtysik wrote:Hi gEnTi,


what browser do you use? When I use Firefox, I have the same problem.

When I use IE 6.0, it works... :-)


Joachim
It just works the first time. When you have clicked on every link in the menu it just stays purple on purple background... as far as i can remember from the last time i tried...

@pico will try your suggestion.. actually it seems that every link will change its color in the menu to white on every item. that's not what I want..

I'm so close to think that this is not technically possible :-)
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

think it is possible, but you must split your Styles a little more in
hover, active, visited and so on
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Sevenupcan
Posts: 24
Joined: Fri 29. Apr 2005, 02:44

Post by Sevenupcan »

Yeah, it's something to do with your a pseudo-classes. Try replacing a:link with just a and see if that makes any difference.

I'm not sure why it turns the dfault purple though, as the style she tells it to turn white when it has been visited. At least it does for one selector.
Post Reply