+ 3
How many away I can colored front and background color?
Please give me some example.
1 Odpowiedź
+ 3
1. Using color name, but you have make sure that color is spelled out correctly
example
body {
background-color:palegoldenrod;
color:chocolate; /*yammy text color*/
}
2. Using hexadecimal color code made up of primary colors viz red, green, and blue in format #rrggbb
example
body {
background-color:#a45e67;
color:#000 ; /*black */
}
3. Using rgb () function by specifying values for red, green, and blue color within range of 0-255
example
body {
background-color:rgb(255,0,0);
color:rgb (255,255,255) ; /*white*/
}