
The padding is the space between the text and the border. The padding is colored pink using the foundation shading property to make it simpler to see.
CSS has properties for indicating the padding for each side of a component:
All the padding properties can have the following values:
length - indicates a padding in px, pt, cm, and so forth
% - indicates a padding in % of the width of the containing component
inherit - indicates that the padding should to be inherited from the parent component
Let's see an example
Output:

Try it here>