CSS Padding. The CSS padding properties are used to generate space around an element’s content, inside of any defined borders.. With CSS, you have full control over the padding. There are properties for setting the padding for each side of an element (top, right, bottom, and left).
An element’s padding area is the space between its content and its border. Note: Padding creates extra space within an element. In contrast, margin creates extra space around an element.