Name
padding-right — IE4 P/P | IE5 P/Y | NN4 B/B | Op3 Y/-
Synopsis
This property sets the size of the right padding of an element, and this padding will “inherit” the element’s background. Negative values are not permitted.
Example
IMG {padding-right: 30px;}
Values
<length> | <percentage>
Default
0
Inherited
no
Applies to
all elements
Percentage values refer to the width of closest block-level ancestor.
Get Cascading Style Sheets: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.