Important CSS properties

  1. Position Elements with CSS

    • static

      This is the default value and specifies that the element is positioned according to the normal flow of document content

    • absolute

      If an element uses absolute positioning, its top and left properties are interpreted rel- ative to the closest ancestor element that has its position property set to something other than static. If an absolutely positioned element has no positioned ancestor, the top and left properties are measured in document coordinates

    • relative

      If you wish to absolutely position an element relative to a container that is part of the normal document flow

    • fixed

      This value allows you to specify an element’s position with respect to the browser window

  2. Borders, Margins and Padding

  3. Element Display and Visibility