CSS padding Property

Last Updated Jul 21, 2015, 12:00:06 PM

CSS padding Property

The padding property sets the padding space on all sides of an element. The padding area is the space between the content of the element and its border. Negative values are not allowed.

The below example sets the padding for two paragraphs

Try It Now

Browser compatibility
Basic support 1.0 1.0 (1.7 or earlier) 1.0 7.0 4.0 ? ?

Other CSS Padding Properties you might want to learn

CSS Padding Property

CSS Padding Bottom Property

CSS Padding Top Property

CSS Padding Left Property

CSS Padding Right Property

Sources and Credits

The source of the content has been referred and updated with Mozilla Foundation and W3C Organization

Last Updated Jul 21, 2015, 12:00:06 PM