Is there a way to put a style in a style.
I have my pages using one color for the background and one for the text and links. I have :#2FABAD for may backgrounds and #4AAABD for my text. The problem is I have them in many places in my .css file and in the pages themselves.
My .css file looks something like:
If I want to change the colors I need to change each one.
I would like to be able to say something like:
.bgColor {background-color:#2FABAD;}
and
.fgColor {color:#4AAABD}
And put these in my styles. I can then change .bgColor and .fgColor and all my menu colors on all my pages change.
This works fine for all the pages that have the styles inline, but not in the style sheet.
Is there a way to do this?
Thanks,
Tom
I have my pages using one color for the background and one for the text and links. I have :#2FABAD for may backgrounds and #4AAABD for my text. The problem is I have them in many places in my .css file and in the pages themselves.
My .css file looks something like:
Code:
th {
font-family:Arial, Helvetica, sans-serif;
background-color:#2FABAD;
color:white;
}
a:visited {
color:#4AAABD;
}
a:link {
color:#4AAABD;
}
a:active {
color:#4AAABD;
}
If I want to change the colors I need to change each one.
I would like to be able to say something like:
.bgColor {background-color:#2FABAD;}
and
.fgColor {color:#4AAABD}
And put these in my styles. I can then change .bgColor and .fgColor and all my menu colors on all my pages change.
This works fine for all the pages that have the styles inline, but not in the style sheet.
Is there a way to do this?
Thanks,
Tom