elibraryportal Logo

CSS Boxmodel

In CSS box model you can say about design and layout.It consists of: margins, borders, padding, & the actual content.

CSS Boxmodel Example

Different properties of Boxmodel that is.

  • Margin:- Clears an area outside the border margin-box width and height.
  • Border:- A border goes around the padding-box and the margin.
  • Padding:- Clears an space around the subject area and inside the border-box..
  • Content:- where this area used for text and images appear


Test it Now