From 4b1a9203c547c019fc5398082ae19a3f3d4c3efe Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:15 -0500 Subject: initial commit --- files/de/web/css/columns/index.html | 113 ++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 files/de/web/css/columns/index.html (limited to 'files/de/web/css/columns/index.html') diff --git a/files/de/web/css/columns/index.html b/files/de/web/css/columns/index.html new file mode 100644 index 0000000000..5a243ed703 --- /dev/null +++ b/files/de/web/css/columns/index.html @@ -0,0 +1,113 @@ +--- +title: columns +slug: Web/CSS/columns +tags: + - CSS + - CSS Eigenschaft + - CSS Mehrspalten Layout + - Layout + - Referenz + - Web +translation_of: Web/CSS/columns +--- +
{{CSSRef}}
+ +

Die CSS Eigenschaft columns ist eine Kurzform Eigenschaft, die es erlaubt, sowohl die {{ cssxref('column-width') }} als auch die {{ cssxref("column-count") }} Eigenschaft auf einmal zu setzen.

+ +
{{EmbedInteractiveExample("pages/css/columns.html")}}
+ + + +

Syntax

+ +
/* 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;
+ +

Die Eigenschaft columns kann mit einem oder mit zwei von den unten aufgelisteten Werten in beliebiger Reihenfolge spezifiziert.

+ +

Werte

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

Formale Definition

+ +

{{cssinfo}}

+ +

Formale Syntax

+ +
{{csssyntax}}
+ +

Beispiel

+ +

Sets drei gleiche Spalten

+ +

HTML

+ +
<p class="content-box">
+  This is a bunch of text split into three columns
+  using the CSS `columns` property. The text
+  is equally distributed over the columns.
+</p>
+
+ +

CSS

+ +
.content-box {
+  columns: 3 auto;
+}
+ +

Ergebnis

+ +

{{EmbedLiveSample('Setting_three_equal_columns', 'auto', 120)}}

+ +

Spezifikation

+ + + + + + + + + + + + + + + + +
SpezifikationStatusKommentar
{{ SpecName('CSS3 Multicol', '#columns', 'columns') }}{{ Spec2('CSS3 Multicol') }}Ursprüngliche Definition
+ +

Browser Kompatibilität

+ + + +

{{Compat("css.properties.columns")}}

+ +

Siehe auch

+ + -- cgit v1.2.3-54-g00ecf