/
CSS Colors
CSS Colors
CSS gives us a powerful array of ways to select colors. We can be very exact, specifying specific values for RGB like so:
.MAIN > * {
color: rgb(118,109,199);
}
This specifies that all headings will be light purple.
We can also use some built in constants for certain colors:
.MAIN h1 {
color: darkblue;
}
Other color rules exist - google is your friend at this point.
, multiple selections available,
Related content
Make a CSS sandbox!
Make a CSS sandbox!
More like this
CSS Appearance Concepts
CSS Appearance Concepts
Read with this
Change CSS property of a DOM element
Change CSS property of a DOM element
More like this
CSS Borders - Useful for debugging
CSS Borders - Useful for debugging
Read with this
What is RGB in css?
What is RGB in css?
More like this
CSS Pseudo Class Selectors
CSS Pseudo Class Selectors
Read with this