Common CSS Properties
- color - This changes the color of the text within the selected elements
- Valid values can be in hex, rgb, or HTML color codes
- text-align - Align the text of block-level elements
- Values can be left, right, center, or justify
- text-decoration - Extra lines around your text
- Values can be none, underline, overline, strikethough
- Usually used to remove underline from links (
<a>)
- font-family - Specify the font for a selected element
- Examples: serif, sans-serif, cursive
- font-weight - Change font of element to be bold or less bold
- Values: lighter, normal, bold, bolder
- font-size - change the font size of text within an element
- background-color - Set the background color of an element
- background-image - Set the background of an element to an image
- Value must be in form:
url("image.png")where image.png is the path to the image desired in the background
- margin - add space between an element and it's surroundings
- Values in px or any spacial unit
CSS properties and values can go on forever. Don't worry about memorizing them all.
Here's a good place to start.
Here's a semi-exhaustive list.
Let's head into an exercise.