How does CSS work?

  • CSS lives separately from the HTML elements
  • It uses "selectors" to target elements and apply styles
  • Allows for theming, branding, "skinning"
  • CSS can conflict with itself
    • The most "specific" CSS wins
    • The last evaluated CSS breaks ties

7 / 23