CSS2 Padding Properties


This is a complete reference guide for web developers where haved we 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







Spacer Bottom Left Corner ImageBottom Right Corner Image
Valid XHTML 1.0 Strict  Valid CSS! Check the accessibility of this site according to U.S. Section 508