View On GitHub
reading-notes
Reading Notes for Codefellows!
Project maintained by
AlanYHung
Hosted on GitHub Pages — Theme by
mattgraham
Code 102
Reading 05
Introducing CSS
CSS is used to help indicate how each section of the web page should look.
Selectors specify the parts that rules apply to
Declarations indicate how parts should look like
Declarations are made up of 2 parts
The properties of the part you are going to change
The values of the properties
CSS Rules usually have their own page, but may be used in same page as HTML
Color
Three Ways to specify color
RGB Values
Hex Codes
Color Names
Color Pickers can help you find the color you want
Contrast is important between Background and Foreground to ensure your site can be easily Read
CSS3 has introduced a new color functions
RBGA (Allows you to change Opacity) (RGBA stands for Red Blue Green Alpha)
HSL (Hue, Saturation, Lightness)
HSLA (Allows you to change Opacity)
Alpha values range between 0 and 1.0 (Not Transparent to Transparent)
<– Back