Padding

The   property is used in CSS and certain HTML tags. It can only be used with an available  or   property, as it provides the information on the padding of the background color or image around the text. Its values can be entered in pixels or percentages. Pixels generate more accurate results, where percentages often make the padding too large. To specify a different padding for each side of the object, use,  ,  , or.

Examples
To apply this in an HTML document, use:

Pixels
Padded text.

That will produce: Padded text.

Percentages
Padded text.

That will produce: Padded text.

To apply this in CSS, in the  element for example, use:

h1 { background-color:white; color:black; padding:5px; }