• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Can you explain CSS box model?

All HTML elements can be considered as boxes. In CSS, the term "box model" is used when talking about design and layout. The CSS box modelis essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content.
 
The CSS box model is the foundation of layout on the Web — each element is represented as a rectangular box, with the box's content, padding, border, and margin built up around one another like the layers of an onion.
The CSS box model describes the rectangular boxes that are generated for elements in the document tree and laid out according to the visual formatting model.
 
Back
Top