in CSS by
What is the Box model in CSS? Which CSS properties are a part of it?

1 Answer

0 votes
by

A rectangle box is wrapped around every HTML element. The box model is used to determine the height and width of the rectangular box. The CSS Box consists of Width and height (or in the absence of that, default values and the content inside), padding, borders, margin.

box model property

Box Model In CSS

  1. Content:  Actual Content of the box where the text or image placed.
  2. Padding: Area surrounding the content (Space between the border and content).
  3. Border: Area surrounding the padding.
  4. Margin: Area surrounding the border.
...