padding-rightIt is possible to define these individual paddings simply by adding a direction suffix to the padding attribute. Padding-right will set the right 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-right: 14px; border: 1px solid black; } Display:This paragraph had one padding speficied (right), using a directional declaration. This paragraph had one padding speficied (right), using directional declaration. This paragraph had one padding speficied (right), using directional declaration. Compatibility Issues:IE 5.0 - Padding can be buggy.
IE 5.5 - Padding can be buggy, but better than 5.0. |