CSS2 - Padding Properties


Advertisements


This is a complete reference guide for web developers where we have listed all the CSS properties related to padding defined in the World Wide Web Consortium's Recommended Specification for Cascading Style Sheets, Level 2.

Click any property to see its description with examples −

Property Description

padding

Defines all four padding amounts around an element.

padding-bottom

Defines the bottom padding of an element. Default value is 0.

padding-left

Defines the left padding of an element. Default value is 0.

padding-right

Defines the right padding of an element. Default value is 0.

padding-top

Defines the top padding of an element. Default value is 0.

css_references.htm

Advertisements