Professional Documents
Culture Documents
CSS Cheat Sheet: by Via
CSS Cheat Sheet: by Via
CSS Cheat Sheet: by Via
Format Background
Your CSS code is written in rule sets like below: background-color Set the background to any color name or hex code
h1 {color:blue;} background- Make the background an image, put your link in the
In this example color is the property and blue is the value image: url("link") quotes
Each line of css must end in a ; background-size Change the size of your background image (set to
"cover" to fill the screen)
Classes and Ids
Borders
When referencing a class use a period, when referencing anid use a
pound sign. Example: border- Can be dotted,dashed,solid,double,groove,ridge,inset, or
.class-name {} style outset
#id-name{}
border- Change the color of your border
color
Spacing and Sizing border- How thick the line of the border is, set with px
Text
color Change your text color (use a color name or hex code)
font-size Set the size of the text (make sure your number is followed
by 'px')