padding-bottom
Sets the amount of space to insert between the indicated border of the object and the content.
sPadding
Variant that specifies or receives one of the following values:
length | Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px). For more information about the supported length units, see Length units reference. |
percentage | Integer, followed by a percent sign (%). The value is a percentage of the width of the parent object. |
The property has a default value of 0 for all objects and is not inherited.
The following example uses the padding-bottom property to change the padding of the object. This example uses the TD element as a selector in an embedded style sheet to set the top padding for all table cells to 1 centimeter:
<style>
td { padding-bottom: 1cm; }
</style>
This example uses inline scripting to set the top padding of the cell to 1 centimeter when an onmouseover event occurs:
<td onmouseover="this.style.paddingTop='1cm'" onmouseout="this.style.paddingTop=''"> <img src="sphere.jpg"> </td>
This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1).
A, ABBR, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, CUSTOM, DD, DEFAULTS, DEL, DFN, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, HN, HR, I, IMG, INPUT TYPE=BUTTON, INPUT TYPE=CHECKBOX, INPUT TYPE=FILE, INPUT TYPE=IMAGE, INPUT TYPE=PASSWORD, INPUT TYPE=RADIO, INPUT TYPE=RESET, INPUT TYPE=SUBMIT, INPUT TYPE=TEXT, INS, LI, NEXTID, OBJECT, OL, P, Q, RT, RUBY, S, SELECT, SPAN, SUB, TD, TH, TT, U, UL, VAR, XMP