Solved

CSS:  define color swatch names?

Posted on 2012-03-12
4
352 Views
Last Modified: 2012-03-12
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
Comment
Question by:willsherwood
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37711439
Here are the predefined color names: http://www.w3schools.com/cssref/css_colornames.asp
0
 

Author Comment

by:willsherwood
ID: 37711811
thanks - i'm familiar with color names,
sorry i didn't clarify that i'm looking to define CUSTOM colors
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37711894
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
 

Author Closing Comment

by:willsherwood
ID: 37712031
thanks
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question