PROPERTY: PADDING

PADDING : LENGTH | PERCENTAGE }
 
Inherited: No
 
The PADDING property allows you to set the same PADDING value, for all four borders and any contents such as text or images, in only one declaration.
 
You can declare one, two, three, or four values:
 
If you declare one value, the amount of padding between all four borders and the contents will be that value.
 
If you declare two values, the top and bottom padding will be set by the first value, the right and left padding by the second value.
 
If you declare three values, the top padding will be set by the first value, the right padding by the second, and the bottom and left padding by the third.
 
If you declare four values, the order is top, right, bottom, left.
 
LENGTH
 
The LENGTH value can be in any of the following seven units. Use the abbreviation.
 
Length Abbrev.
centimeters CM
ems EM
inches IN
millimeters MM
picas PC
pixels PX
points PT

 
PERCENTAGE
 
The PERCENTAGE value is based upon the total width being defined as 100%.
 
Code:
Selector {PADDING:  25MM}
Selector {PADDING:  1.0IN}
Selector {PADDING:  15PC 25PC}
Selector {PADDING:  36PT 24PT 36PT}
Selector {PADDING:  11.5%}
Selector {PADDING:  10%  10%  10%  10%}

Copyright 2000 by Infinite Software Solutions, Inc.
Trademark Information