• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 375
  • Last Modified:

CSS: define color swatch names?

In graphic design tools, there are not only character & paragraph styles, but ink swatch definitions to use a certain color in many contexts.

I'm wondering if there's an equivalent to define a color and then be able to use it in CSS rule definitions wherever  (text, background, etc.) colors are to be specified, rather than having to paste in a #literal.

thanks
0
willsherwood
Asked:
willsherwood
  • 2
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
Here are the predefined color names: http://www.w3schools.com/cssref/css_colornames.asp
0
 
willsherwoodAuthor Commented:
thanks - i'm familiar with color names,
sorry i didn't clarify that i'm looking to define CUSTOM colors
0
 
Dave BaldwinFixer of ProblemsCommented:
In that case, your server side language or development tool would have to support that.  CSS doesn't have any programming functions.  It is strictly style definitions.
0
 
willsherwoodAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now