padding-bottom プロパティは、要素の下パディング(スペース)を設定します。
注:負の値は使用できません。
| デフォルト値: | 0 |
|---|---|
| 継承: | 継承する |
| アニメーション可否: | 可。animatable を参照 Try it |
| バージョン: | CSS1 |
| JavaScript 構文: | object.style.paddingBottom="50px" Try it |
表中の数字は、完全にプロパティをサポートした最初のブラウザのバージョンです。
| プロパティ | |||||
|---|---|---|---|---|---|
| padding-bottom | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
padding-bottom: length|initial|inherit;
| 値 | 説明 | Play it |
|---|---|---|
| length | px、pt、cm 等で下パディングを指定します。 デフォルトは 0 です | Play it ❯ |
| % | 包含要素の幅の割合で下パディングを指定します | Play it ❯ |
| initial | プロパティにデフォルト値を設定します。initial を参照 | Play it ❯ |
| inherit | このプロパティは親要素を継承します。inherit を参照 |
CSS チュートリアル: CSS Padding
HTML DOM リファレンス: paddingBottom プロパティ