1.

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

Answer»

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.

 
  • Content:  Actual Content of the box where the text or image is placed.
  • Padding: Area SURROUNDING the content (Space between the border and content).
  • Border: Area surrounding the padding.
  • Margin: Area surrounding the border.


Discussion

No Comment Found