CSS HTML Validator - The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker for Windows, & htmlval for Mac and Linux
Home Help: "padding" CSS property

The "padding" CSS Property


This shorthand property sets the padding space on all sides of the content area. Padding values may not be negative.

Values for "padding"
CSS LevelValue
CSS Box Model Level 3"<length-percentage [0,∞]>{1,4}"

Syntax Notes for "padding"

  • Specify the paddings in this order: top, right, bottom, left.
  • If only one value is supplied, then it applies to the top, right, bottom, and left paddings. If only two values are supplied, then the first value applies to the top and bottom paddings and the second value applies to the right and left paddings.

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem