--- title: flex-shrink slug: Web/CSS/flex-shrink tags: - CSS - CSS Eigenschaft - CSS Flexible Boxes - Layout - Referenz translation_of: Web/CSS/flex-shrink --- <p>{{CSSRef}}</p> <h2 id="Übersicht">Übersicht</h2> <p>Die <code>flex-shrink</code> <a href="/de/docs/Web/CSS">CSS</a> Eigenschaft gibt den Schrumpffaktor eines Flexelements an.</p> <p>{{cssinfo}}</p> <p>Siehe die <a class="new" href="https://developer.mozilla.org/de/docs/Web/Guide/CSS/Flexible_boxes">Verwendung von CSS Flexible Boxes</a> für weitere Eigenschaften und Informationen.</p> <h2 id="Syntax">Syntax</h2> <pre class="twopartsyntaxbox"><a href="https://developer.mozilla.org/de/docs/Web/CSS/Wertdefinitionssyntax" title="CSS/Value_definition_syntax">Formale Syntax</a>: {{csssyntax("flex-shrink")}} </pre> <pre>flex-shrink: 2 flex-shrink: inherit </pre> <h3 id="Werte">Werte</h3> <dl> <dt><code><number</code>></dt> <dd>Siehe {{cssxref("<number>")}}. Negative Werte sind ungültig.</dd> </dl> <h2 id="Beispiele">Beispiele</h2> <pre class="brush:css; highlight:[2]">element { flex-shrink: 3; } </pre> <h2 id="Spezifikationen">Spezifikationen</h2> <table class="standard-table"> <thead> <tr> <th>Spezifikation</th> <th>Status</th> <th>Kommentar</th> </tr> </thead> <tbody> <tr> <td>{{ SpecName('CSS3 Flexbox', '#flex-shrink', 'flex-shrink') }}</td> <td>{{ Spec2('CSS3 Flexbox') }}</td> <td> </td> </tr> </tbody> </table> <h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2> <p>{{Compat("css.properties.flex-shrink")}}</p> <p>[1] Firefox unterstützt bis Version 28 nur einzeiliges Flexbox Layout. Um Flexbox Unterstützung für Firefox 18 und 19 zu aktivieren, muss die Einstellung <code>layout.css.flexbox.enabled</code> in <code>about:config</code> auf <code>true</code> gesetzt werden.</p> <h2 id="Siehe_auch">Siehe auch</h2> <ul> <li><a class="new" href="https://developer.mozilla.org/de/docs/Web/Guide/CSS/Flexible_boxes" title="CSS/Using_CSS_flexible_boxes">Verwendung von CSS Flexible Boxes</a></li> </ul>