CSS Magic


Priorities

Which css placement has the highest priorities?

  1. !important tag
  2. Inline CSS
  3. Id Selector (#)
  4. Class Selector (.)
  5. Tag Selector

Positioning

How do various positions behave

  1. Position Relative
  2. Position Absolute
  3. Position Static (Default)
  4. Position Fixed
  5. Position Sticky