CSS2 - Padding Properties



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 −

Sr.No. Property & Description
1 padding

Defines all four padding amounts around an element.

2 padding-bottom

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

3 padding-left

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

4 padding-right

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

5 padding-top

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

css_references.htm
Advertisements