The CSS padding properties define the space between the element border and the element content. You can define the padding value the following way:
The CSS border properties allow you to specify the style and color of an element's border.
The CSS margin properties define the space around elements. The margin clears an area around an element (outside the border). The margin does not have a background color, and is completely transparent.
You can define the element margin values the following way: