Solved

CSS:  define color swatch names?

Posted on 2012-03-12
4
348 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Character counter breaks after adding EmojiOne Area 4 86
CSS question 16 63
Slow Down an Animation 3 29
Firefox CSS Help. 1 14
Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

752 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