Best WordPress Hosting
 

8 Ways to Declare Colors in CSS: Detailed Guide + Examples

via torquemag.io => original post link

CSS offers several different ways to declare colors, each with its own syntax, benefits, and drawbacks. It can get a bit confusing especially since they are still adding new ways.

If you are not always sure how you should go about and declare your colors in CSS, in this post we want to shine a light on this issue. In the following, we will go over different ways for assigning colors to website elements, how to use them, the pros and cons, and when to use what.

Assigning Colors in CSS