• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 368
  • 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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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