RGB colors in CSS use

Colors in CSS web designers can define three ways, with color names, hex and RGB codes. The latter is the most intuitive, because you do not have to learn the value of letters, such as Hex.

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

That’s all. This is the color of your blue letters.

p
 {
 background:rgb(0,0,255); color:rgb(255,255,255);
 }

This is the background color of your blue point and white letters.
Play it and you come out behind itself.
See also

CSS Color Codes: Hexadecimal and RGB

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>