PROPERTY: padding-top

padding-top : length | percentage
 
Compatibility:  IE4+  N4+
Version: Level 1
Inherited: No
 
The padding-top property allows you to insert padding (space) between the top border and the enclosed text or images.
 
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 height being defined as 100%.
 
Code:
body { padding-top: 25mm; }
body { padding-top: 1.0in; }
body { padding-top: 15pc; }
body { padding-top: 36pt; }
body { padding-top: 11.5%; }

 
or
 
<table border="2">
<tr>
<td style="padding-top: 22px;">
top padding
</td>
</tr>
</table>

 
Output:
 
top padding


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information