SamirDarji
09-30-2004, 06:15 PM
I've done searches here for this and couldn't find anything. :( I may not have the correct teminology, but I know nothing about CSS.
Here's a piece of a style sheet I have:
.alt1, .alt1Active
{
background-color: #F5F5FF;
color: #000000;
}
What I want to do is effectively "dereference" the colors inside this class and use them directly.
In the following piece of html
<img width=166 height=77 src='http://www.weatherroom.com/cgi-bin/weather.cgi?forecast=hourly&hwvtc=black&hwvbg="alt1"&pands=Huntsville, AL&config=png&alt=hwicc' alt="Weather for Huntsville,AL provided by weatherroom.com." border="0">
"hwvbg=" is currently hard coded. I want to use the "background-color:" selector's color element in the html instead of hard coding. The current implementation of "alt1" uses the "color" element. Is there a way to specify which selector to use within a class?
Thank you for your assistance.
Here's a piece of a style sheet I have:
.alt1, .alt1Active
{
background-color: #F5F5FF;
color: #000000;
}
What I want to do is effectively "dereference" the colors inside this class and use them directly.
In the following piece of html
<img width=166 height=77 src='http://www.weatherroom.com/cgi-bin/weather.cgi?forecast=hourly&hwvtc=black&hwvbg="alt1"&pands=Huntsville, AL&config=png&alt=hwicc' alt="Weather for Huntsville,AL provided by weatherroom.com." border="0">
"hwvbg=" is currently hard coded. I want to use the "background-color:" selector's color element in the html instead of hard coding. The current implementation of "alt1" uses the "color" element. Is there a way to specify which selector to use within a class?
Thank you for your assistance.