padding-leftIt is possible to define these individual paddings simply by adding a direction suffix to the padding attribute. Padding-left will set the left padding for this element. Value | Description | size | px - size in terms of pixels
em - size in terms of the current font size
in - size in terms of inches
cm - size in terms of centimeters | percentage | The width of this element will be a percentage of the element it is inside of. |
Code:p { padding-left: 25px; border: 1px solid black; } Display:This paragraph had one padding speficied (left), using a directional declaration. This paragraph had one padding speficied (left), using directional declaration. This paragraph had one padding speficied (left), using directional declaration. Compatibility Issues:IE 5.0 - Padding can be buggy. |