The Border properties allow you to specify the style, color, and width of an element's border.

In HTML we used tables to create borders around a text, but with the Border properties we can create borders with nice effects, and it can be applied to any element.

The Padding properties define the space between the element border and the element content. Negative values are not allowed. The top, right, bottom, and left padding can be changed independently using separate properties. A shorthand padding property is also created to control multiple sides at once.

The Margin properties define the space around elements. It is possible to use negative values to overlap content. The top, right, bottom, and left margin can be changed independently using separate properties. A shorthand margin property can also be used to change all of the margins at once.