What is CSS Name?
-
What is the purpose of the CSS Name box? Can I use it to give the colors I’ve picked a name which I can then reference in CSS.
For example – say I have a color of #000080 which is my main theme color and which I want to use to give a background to links on hover.
I could set the css to read
/* mouse over link */
a:hover {
background-color: #000080;
}but if I could name a color,say, maintheme and then set my CSS as
/* mouse over link */
a:hover {
background-color: maintheme;
}then if I ever changed my main theme color I could change it in Central Color Palette but keep the css name the same and I wouldn’t have to go round change the hex code else where.
Is it possible to do this?
Thanks
- The topic ‘What is CSS Name?’ is closed to new replies.