What is a box model?

The CSS layout is based on a model that is called a box model; that is, all HTML elements in a document tree are considered to be boxes, including the textual lines. Each box is made of a c...

Margin properties

The properties margin-top, margin-right, margin-bottom, margin-left and margin are called margin properties and they specify the width of the

Border properties

The border properties define the width of the border area around the box, as well as th...

Padding properties

The properties padding-top, padding-right, padding-bottom, padding-left and padding are called padding properties and they specify the width of the