CSS Cheatsheet

Syntax

selector1 {
  property: value;
  property: value;
}

selector2 {
  property: value;
}

Selectors

When elements match multiple selectors the preference is

See more: w3schools

Class VS Id

An Id is unique, a class can be used on multiple elements.

margin vs padding, width vs actual-width, height vs actual-height

Properties

Wrap text around image

Image property: float: left; or float: right;