codingtcher.com
Theme Night
Home
Login

Css Colors

Home » Css » Css Colors

css color properties

h1 {
    color: rgb(0,0,255);
}

css colors

/*official color keywords wiki*/
	https://www.w3.org/wiki/CSS/Properties/color/keywords

/*good wikipedia entry w pics*/
	https://en.wikipedia.org/wiki/Web_colors
Source: www.w3.org

css color

/* all color are same */
color: rgb(255, 99, 71)
color: #ff6347
color: hsl(9, 100%, 64%)

css color

/* use color: ;
it can be: */
color: red;  				/*color name(1)*/
color: rgb(100, 50, 30);    /*RGB value(2)*/
color: #122120;  			/*HAX value(3)*/
color: #fff;
color: hsl(120, 55%, 20%)	/*HUE value(4)*/
/*(2)and(3) are the most recommended*/

color selector html

<input type="color" value="#f6f82" id="colorPicker">

CSS Colors

#p1 {background-color: rgba(255, 0, 0, 0.3);}  /* red with opacity */
#p2 {background-color: rgba(0, 255, 0, 0.3);}  /* green with opacity */
#p3 {background-color: rgba(0, 0, 255, 0.3);}  /* blue with opacity */

text color css

.class {
  color: white;
}

Css Related Post