CSS Cheatsheet

An Interactive Refresher of CSS Concepts

CSS Rules (Selectors and Declaration Blocks)

div {
font-style: italic;
line-height: 24px;
}

section.large #explanation {
linear-gradient: to top left, green 10%, red 90%;
border: 5px dashed darkgreen;
}

CSS Properties and Comments

/* This is a CSS comment */

body {
background-color: pink;
font-family: Courier New;
}