--- title: padding-left slug: Web/CSS/padding-left tags: - CSS - CSS Referenz translation_of: Web/CSS/padding-left --- <p>{{ CSSRef() }}</p> <h2 id="Übersicht">Übersicht</h2> <p>Die <code>padding-left</code> Eigenschaft legt den linken Innenabstand eines Elementes fest. Der Innenabstand ist der Bereich zwischen dem Inhalt und dem <a href="/de/CSS/border" title="de/CSS/border">Rahmen</a> (auch: <em>padding area</em>).</p> <ul> <li>Standardwert: <code>0</code></li> <li>Anwendbar auf: alle Elemente außer <code>table-*-group</code>, <code>table-row</code> und <code>table-column</code></li> <li>Vererbbar: nein</li> <li>Prozentwerte: beziehen sich auf die <a href="/de/CSS/width" title="de/CSS/width">Breite</a> des umschließenden Blocks.</li> <li>Medium: visuell</li> <li>berechneter Wert: eine Prozentzahl wie festgelegt oder die absolute Länge.</li> </ul> <h2 id="Syntax">Syntax</h2> <pre class="eval">padding-left: <Längenangabe> | <Prozentzahl> | inherit</pre> <h3 id="Werte">Werte</h3> <dl> <dt><Längenangabe></dt> <dd>Legt eine bestimmte <a href="/de/CSS/Einheiten#L.c3.a4ngen" title="de/CSS/Einheiten#L.c3.a4ngen">Länge</a> fest. Negative Werte sind <strong>nicht</strong> erlaubt.</dd> <dt><Prozentzahl></dt> <dd>Ein <a href="/de/CSS/Einheiten#Prozent" title="de/CSS/Einheiten#Prozent">prozentualer</a> Wert, der sich auf die Breite des umschließenden Blocks (containing block) bezieht. Negative Werte <strong>nicht</strong> sind erlaubt.</dd> <dt>inherit</dt> <dd>Der Wert des Elternelements wird geerbt.</dd> </dl> <h2 id="Beispiele">Beispiele</h2> <pre>.content { padding-left: 5%; } .sidebox { padding-left: 10px; } </pre> <h2 id="Browser_Kompatibilität">Browser <span>Kompatibilität</span></h2> <table class="standard-table"> <tbody> <tr> <th>Browser</th> <th>ab Version</th> </tr> <tr> <td>Internet Explorer</td> <td>4.0</td> </tr> <tr> <td>Firefox (Gecko)</td> <td>1.0 (1.0)</td> </tr> <tr> <td>Opera</td> <td>3.5</td> </tr> <tr> <td>Safari (WebKit)</td> <td>1.0 (85)</td> </tr> </tbody> </table> <h2 id="Spezifikation">Spezifikation</h2> <ul> <li><a class="external" href="http://www.w3.org/TR/CSS21/box.html#padding-properties" lang="en">CSS 2.1 Box #padding</a></li> </ul> <h2 id="Siehe_auch">Siehe auch</h2> <ul> <li><a href="/de/CSS/padding" title="de/CSS/padding"><code>padding</code></a>, <a href="/de/CSS/padding-right" title="de/CSS/padding-right"><code>padding-right</code></a>, <a href="/de/CSS/padding-bottom" title="de/CSS/padding-bottom"><code>padding-bottom</code></a>, <a href="/de/CSS/padding-top" title="de/CSS/padding-top"><code>padding-top</code></a></li> <li><a href="/de/CSS/-moz-padding-start" title="de/CSS/-moz-padding-start"><code>-moz-padding-start</code></a>, <a href="/de/CSS/-moz-padding-end" title="de/CSS/-moz-paddding-end"><code>-moz-padding-end</code></a></li> <li><a href="/de/CSS/margin" title="de/CSS/margin"><code>margin</code></a></li> </ul> <p>{{ languages( { "en": "en/CSS/padding-left", "ja": "ja/CSS/padding-left" } ) }}</p>