Home HTML CSS JAVASCRIPT BOOTSTRAP Python Docker ML tutorial About us Privacy policy

The CSS Box Model


The CSS Box Model:-



All HTML elements can be considering is a boxes. In CSS, the term "box model" is using to design and layout. It using of: margins, borders, padding, and the actual content.
  • Content - The content of the box, where text and images inside the box
  • Padding - Clears an area around the content.
  • Border is that is goes around the padding and contents
  • Margin - Clears an area outside the border.

  • Width and Height of an Elements in css:-