css

  • Everything is a box.
  • Boxes can be inline or block-level.
  • Boxes have content, padding, borders, and margins.
  • They also have seemingly arbitrary rules about how they interact.
  • Mastering the CSS box model means you can lay out most web pages.
  • the universal truth of CSS layouts: everything is a box inside of a box inside of another box.