--- title: <ratio> slug: Web/CSS/ratio tags: - CSS - CSS Datentypen - Layout - Referenz - Web translation_of: Web/CSS/ratio --- <div>{{CSSRef}}</div> <p>Der <code><ratio></code> <a href="/de/docs/Web/CSS">CSS</a> Datentyp, der zur Beschreibung von Seitenverhältnissen in <a class="internal" href="/de/docs/Web/Guide/CSS/Media_queries">Media Queries</a> verwendet wird, bezeichnet das Verhältnis zwischen zwei einheitenlosen Werten. Es ist ein strikt positiver {{cssxref("<integer>")}} Wert gefolgt von einem Slash ('/', Unicode <code>U+002F SOLIDUS</code>) und einem zweiten strikt positivem {{cssxref("<integer>")}}. Vor und nach dem Schrägstrich können Leerzeichen stehen.</p> <h2 id="Beispiele">Beispiele</h2> <table class="standard-table"> <thead> <tr> <th scope="col"> </th> <th scope="col">Verhältnis</th> <th scope="col">Verwendung</th> </tr> </thead> <tbody> <tr> <td><img alt="Ratio4_3.png" class="default internal" src="/@api/deki/files/5714/=Ratio4_3.png"></td> <td><code>4/3</code></td> <td>Traditionelles TV-Format im 20sten Jahrhundert.</td> </tr> <tr> <td><img alt="Ratio16_9.png" src="/@api/deki/files/5711/=Ratio16_9.png"></td> <td><code>16/9</code></td> <td>Modernes Breitbild-TV-Format.</td> </tr> <tr> <td><img alt="Ratio1_1.85.png" src="/@api/deki/files/5712/=Ratio1_1.85.png"></td> <td><code>185/100</code> = <code>91/50</code><br> <em>(Nicht-Ganzzahl-Dividenden und -Divisoren sind nicht erlaubt.)</em></td> <td>Die häufigsten Filmformate seit den 1960ern.</td> </tr> <tr> <td><img alt="Ratio1_2.39.png" src="/@api/deki/files/5713/=Ratio1_2.39.png"></td> <td><code>239/100</code><br> <em>(Nicht-Ganzzahl-Dividenden und -Divisoren sind nicht erlaubt.)</em></td> <td>Das anamorphe Breitbild-Filmformat.</td> </tr> </tbody> </table> <h2 id="Spezifikationen">Spezifikationen</h2> <table class="standard-table"> <thead> <tr> <th scope="col">Spezifikation</th> <th scope="col">Status</th> <th scope="col">Kommentar</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('CSS3 Media Queries', '#values', '<ratio>')}}</td> <td>{{Spec2('CSS3 Media Queries')}}</td> <td>Ursprüngliche Definition</td> </tr> </tbody> </table> <h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2> {{Compat("css.types.ratio")}} <h2 id="Siehe_auch">Siehe auch</h2> <ul> <li><a class="internal" href="/de/docs/Web/Guide/CSS/Media_queries">CSS Media Queries</a></li> </ul>