CSS Padding

Estimated reading: 1 minute 43 views

Inherited: No

Padding is the distance between the border of an (X)HTML element and
the content within it.
Most of the rules for
margins also apply to padding, except there is no
"auto" value, and negative values cannot be declared for padding.

				
					padding-top: length percentage; 
padding-left: length percentage;
 padding-right: length percentage;
 padding-bottom: length percentage;
				
			

The selector is the (X)HTML element that you want to style. The property
is the actual property title, and the value is the style you apply to that
property.

Share this Doc

CSS Padding

Or copy link