Skip to main content

Posts

Showing posts from September, 2013

CSS3 Color: List of Value Syntax

This is the syntax list of color code with short explanation on each. You'll also find helpful links at the bottom of this post. Color Code with Keyword We can declare the color style with keyword, e.g blue, grey, red, purple, pink, lightblue, darkgreen, etc. The color keyword is case-insensitive : you can use capital or lowercase letters or mix them up. #Element { color : pink } Color Code with Numeric Hexadecimal Simple Color Map It's a very common method to use this. There are 2 4 .2 4 .2 4 .2 4 .2 4 .2 4 = 2 24 = 16,777,216 (16 millions) possibilities to create color with Hexadecimal. All this CSS3 syntax color numeric and color coordinate system (which you're about to see below this) were built to facilitate the "True Color" - 24 bit color depth. All modern computer screen can display that color depth, and equipped with even more capabilities. #Element { color : #000000 } /* black */ Shorthand, compacting : #Element { color : #000 } /* ...