--- title: padding-bottom slug: Web/CSS/padding-bottom tags: - CSS - CSS Padding - CSS Property - Reference - 'recipe:css-property' translation_of: Web/CSS/padding-bottom --- <div>{{CSSRef}}</div> <p><strong><code>padding-bottom</code></strong> は <a href="/ja/docs/Web/CSS">CSS</a> のプロパティで、要素の<a href="/ja/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model#padding-area">パディング領域</a>における下側の高さを設定します。</p> <div>{{EmbedInteractiveExample("pages/css/padding-bottom.html")}}</div> <div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div> <p>要素のパディング領域とは、コンテンツと境界線の間の領域のことです。</p> <p><img alt="CSS の padding-bottom プロパティの要素ボックスへの影響" src="/files/4109/padding-bottom.svg" style="border-style: solid; border-width: 1px; display: block; margin: 0px auto;"></p> <div class="note"> <p><strong>注:</strong> {{cssxref("padding")}} プロパティは、単一の宣言で要素の四方のパディングをすべて設定することができます。</p> </div> <h2 id="Syntax" name="Syntax">構文</h2> <pre class="brush:css no-line-numbers notranslate">/* <length> の値 */ padding-bottom: 0.5em; padding-bottom: 0; padding-bottom: 2cm; /* <percentage> の値 */ padding-bottom: 10%; /* グローバル値 */ padding-bottom: inherit; padding-bottom: initial; padding-bottom: unset; </pre> <p><code>padding-bottom</code> プロパティは、以下のリスト内から選択した値で指定されます。マージンとは異なり、パディングには負の数は使用できません。</p> <h3 id="Values" name="Values">値</h3> <dl> <dt>{{cssxref("<length>")}}</dt> <dd>固定値によるパディングの寸法です。負の数であってはいけません。</dd> <dt>{{cssxref("<percentage>")}}</dt> <dd>包含ブロックの width に対するパーセント値によるパディングの寸法です。負の数であってはいけません。</dd> </dl> <h2 id="Formal_definition" name="Formal_definition">公式定義</h2> <p>{{cssinfo}}</p> <h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2> {{csssyntax}} <h2 id="Examples" name="Examples">例</h2> <h3 id="Setting_padding_bottom_with_pixels_and_percentages" name="Setting_padding_bottom_with_pixels_and_percentages">ピクセル数とパーセント値で下パディングを設定</h3> <pre class="brush: css notranslate">.content { padding-bottom: 5%; } .sidebox { padding-bottom: 10px; } </pre> <h2 id="Specifications" name="Specifications">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> <th scope="col">状態</th> <th scope="col">備考</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('CSS3 Box', '#propdef-padding-bottom', 'padding-bottom')}}</td> <td>{{Spec2('CSS3 Box')}}</td> <td>変更なし。</td> </tr> <tr> <td>{{SpecName('CSS2.1', 'box.html#padding-properties', 'padding-bottom')}}</td> <td>{{Spec2('CSS2.1')}}</td> <td>変更なし。</td> </tr> <tr> <td>{{Specname('CSS1', '#padding-bottom', 'padding-bottom')}}</td> <td>{{Spec2('CSS1')}}</td> <td>初回定義</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> <div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div> <p>{{Compat("css.properties.padding-bottom")}}</p> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li><a href="/ja/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model" title="ja/CSS/box model">CSS 基本ボックスモデルの紹介</a></li> <li>{{cssxref("padding-top")}}, {{cssxref("padding-right")}}, {{cssxref("padding-left")}} および {{cssxref("padding")}} 一括指定</li> <li>対応付けられる論理的プロパティ: {{cssxref("padding-block-start")}}, {{cssxref("padding-block-end")}}, {{cssxref("padding-inline-start")}}, {{cssxref("padding-inline-end")}} および一括指定の {{cssxref("padding-block")}} と {{cssxref("padding-inline")}}</li> </ul>