padding-left :
length |
percentage
Compatibility: IE4+ N4+
Version: Level 1 Inherited: No
The padding-left property allows you to insert padding (space) between
the left 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 width being
defined as 100%.
Code:
body { padding-left: 25mm; }
body { padding-left: 1.0in; }
body { padding-left: 15pc; }
body { padding-left: 36pt; }
body { padding-left: 11.5%; }
or
<table border="2">
<tr>
<td style="padding-left: 22px;">
left padding
</td>
</tr>
</table>
Output:
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information
|