4 replies [Last post]
kaliman
Offline
newbie
Last seen: 17 years 8 weeks ago
Joined: 2004-03-13
Posts: 6
Points: 0

Well I have tried, but I cant Crying

I have made this menu: http://www.bio-ohm.org/css

I need to remove the blue color in the links the second row (I just putted one link). but I'd like to keep the rest of the links normal or in the color I design.

Thank you very much in advance for any help.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Removing link colors

Hi kaliman,
Try this:

.menu_texto-inactivo a{color:white;}

Hope that helps

kaliman
Offline
newbie
Last seen: 17 years 8 weeks ago
Joined: 2004-03-13
Posts: 6
Points: 0

Removing link colors

Thank you very much Tony
Worked perfect, but I have one doubt.
Now I have it like this:

.menu_texto-inactivo a{color:white;}
.menu_texto-inactivo {
	padding-top: 2px;
	padding-right: 10px;
	padding-bottom: 2px;
	padding-left: 10px;
	color: #FFFFFF;
}

Is there a way to put all togueter? like

.menu_texto-inactivo {
	a{color:white;}
       padding-top: 2px;
	padding-right: 10px;
	padding-bottom: 2px;
	padding-left: 10px;
	color: #FFFFFF;
}

Have a nice day

FairlyClever
Offline
newbie
Last seen: 16 years 44 weeks ago
Joined: 2004-07-10
Posts: 2
Points: 0

Removing link colors

I know one ting you can declare you padding like this

padding: #top# #right# #bottom# #left#;

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 17 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Removing link colors

Kaliman try,

.menu_texto-inactivo, .menu_texto-inactivo a {color:#fff; padding: 2px 10px ;}

you can't nest a declaration within another, the above will set those properties for the class and again for the class if it has a decendent anchor within it and is in the shorthand manner to save on size.

Hugo.

N.B strictly there should be a background color declaration made, for accessibility and validation purposes.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me