aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/css/columns/index.html
blob: 467950484b0c09d65df3593519e5b551d869e3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
title: columns
slug: Web/CSS/columns
tags:
  - CSS
  - CSS Eigenschaft
  - CSS Mehrspalten Layout
  - Layout
  - Referenz
  - Web
translation_of: Web/CSS/columns
---
<div>{{CSSRef}}</div>

<p>Die <a href="/de/docs/Web/CSS" title="CSS">CSS</a> Eigenschaft <strong><code>columns</code></strong> ist eine Kurzform Eigenschaft, die es erlaubt, sowohl die {{ cssxref('column-width') }} als auch die {{ cssxref("column-count") }} Eigenschaft auf einmal zu setzen.</p>

<div>{{EmbedInteractiveExample("pages/css/columns.html")}}</div>

<p class="hidden">Die Quelle für dieses interaktive Beispiel ist in einem GitHub-Repository gespeichert. Wenn Sie zum Projekt der interaktiven Beispiele beitragen möchten, klonen Sie bitte <a href="/de/docs/">https://github.com/mdn/interactive-examples</a> und senden Sie uns eine Pull-Anfrage.</p>

<h2 id="Syntax">Syntax</h2>

<pre class="brush:css no-line-numbers notranslate">/* Column width */
columns: 18em;

/* Column count */
columns: auto;
columns: 2;

/* Both column width and count */
columns: 2 auto;
columns: auto 12em;
columns: auto auto;

/* Global values */
columns: inherit;
columns: initial;
columns: unset;</pre>

<p>Die Eigenschaft <code>columns</code> kann mit einem oder mit zwei von den unten aufgelisteten Werten in beliebiger Reihenfolge spezifiziert.</p>

<h3 id="Werte">Werte</h3>

<dl>
 <dt><code>&lt;column-width&gt;</code></dt>
 <dd>The ideal column width, defined as a {{cssxref("&lt;length&gt;")}} or the keyword <code>auto</code>. The actual width may be wider or narrower to fit the available space. See {{cssxref("column-width")}}.</dd>
 <dt><code>&lt;column-count&gt;</code></dt>
 <dd>The ideal number of columns into which the element's content should be flowed, defined as an {{cssxref("&lt;integer&gt;")}} or the keyword <code>auto</code>. If neither this value nor the column's width are <code>auto</code>, it merely indicates the maximum allowable number of columns. See {{cssxref("column-count")}}.</dd>
</dl>

<h2 id="Formale_Definition">Formale Definition</h2>

<p>{{cssinfo}}</p>

<h2 id="Formale_Syntax">Formale Syntax</h2>

{{csssyntax}}

<h2 id="Beispiel">Beispiel</h2>

<h3 id="Setting_three_equal_columns" name="Setting_three_equal_columns">Sets drei gleiche Spalten</h3>

<h4 id="HTML">HTML</h4>

<pre class="brush: html notranslate">&lt;p class="content-box"&gt;
  This is a bunch of text split into three columns
  using the CSS `columns` property. The text
  is equally distributed over the columns.
&lt;/p&gt;
</pre>

<h4 id="CSS">CSS</h4>

<pre class="brush: css; notranslate">.content-box {
  columns: 3 auto;
}</pre>

<h4 id="Ergebnis">Ergebnis</h4>

<p>{{EmbedLiveSample('Setting_three_equal_columns', 'auto', 120)}}</p>

<h2 id="Specifications" name="Specifications">Spezifikation</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 Multicol', '#columns', 'columns') }}</td>
   <td>{{ Spec2('CSS3 Multicol') }}</td>
   <td>Ursprüngliche Definition</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2>

<div class="hidden">Die Kompatibilitätstabelle auf dieser Seite wird aus strukturierten Daten generiert. Wenn Sie zu den Daten beitragen möchten, besuchen Sie bitte <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> und senden Sie uns eine Pull-Anfrage.</div>

<p>{{Compat("css.properties.columns")}}</p>

<h2 id="See_also" name="See_also">Siehe auch</h2>

<ul>
 <li>{{cssxref("widows")}}</li>
 <li>{{cssxref("orphans")}}</li>
 <li><a href="https://developer.mozilla.org/de/docs/Web/CSS/Paged_Media">Seitennummerierte Medien</a></li>
</ul>