CSS Box model

Credit: MDN
  • Content Edge — The content edge of the box where text and images appear.
  • Padding Edge — Clears an area around the content. The padding is transparent.
  • Border Edge — A border that goes around the padding and content.
  • Margin Edge — Clears an area outside the border. The margin is transparent.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhay Jain

Abhay Jain

Developer with 3 yrs of industrial experience in developing scalable web applications.