Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-26-2006, 06:19 PM   PM User | #1
ClickList
New Coder

 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
ClickList is an unknown quantity at this point
Lightbulb CSS: Referencing a color from another selector

Hello friends

I use some 3rd party component and I'm personalizing the style what is outputed.

Let's say what the component generate the style like this:

.Test { color: red; font-family: verdana; background-color: yellow; }

in my page I wrote just the code:

.Test { color: blue }

And my css overriden the component generated css correctly, maintaining the font-family and background-color, and changing the Color. But in the ".Test A" and ".Test A:hover" I need change ONLY the color from ".Test". I know not speak this in CSS terms, but in programming like language I wish do this:

.Test A, .Test A:hover{ color: .Test.Color }

Exists some manner to do this?
ClickList is offline   Reply With Quote
Old 09-27-2006, 07:57 AM   PM User | #2
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
Nope

Although admittedly this would be a useful option and this matter has been raised several times for that reason, alas: no, CSS offers no possibility to use a reference or a variable for supplying property values; just plain values.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:35 AM.


Advertisement
Log in to turn off these ads.