| |
CSS Color |
|
|
Subject: CSS Color
Author: CyberSpider
Posted on: 04/13/2016 11:02:46 PM
CSS color property is used to specify certain color unto the front face or the background with values:
<named color> -- red, green, blue; #<3-hexadecimal digits> -- #F00, #0F0, #00F; #<6-hexadecimal digits> -- #FF0000, #00FF00, #0000FF; (case-insensitive) rgb(0-255, 0-255, 0-255) -- rgb(255,0,0), rgb(0,255,0), rgb(0,0,255); rgba(0-255, 0-255, 0-255, 0.0-1.0) -- rgba(255,0,0,0), rgba(255,0,0,1); hsla(0-360, 0-100%, 0-100%, 0.0-1.0) -- hsla(0,70%,90%,0), hsla(0,70%,90%,0.8);
For example:
p {
/* front face */
color: rgb(255,0,0);
/* background */
background-color: lightblue;
}
Try it yourself in sandbox »
References:
|
|
|
|