From 3a89b5008c1d8f07e57a6d7595b3967c63b51f8e Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Wed, 29 Dec 2021 22:27:29 +0900 Subject: CSS Columns 関係のプロパティを変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/columns/index.html | 101 ------------------------------------ files/ja/web/css/columns/index.md | 101 ++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 101 deletions(-) delete mode 100644 files/ja/web/css/columns/index.html create mode 100644 files/ja/web/css/columns/index.md (limited to 'files/ja/web/css/columns') diff --git a/files/ja/web/css/columns/index.html b/files/ja/web/css/columns/index.html deleted file mode 100644 index cc9fab26d3..0000000000 --- a/files/ja/web/css/columns/index.html +++ /dev/null @@ -1,101 +0,0 @@ ---- -title: columns -slug: Web/CSS/columns -tags: - - CSS - - CSS Property - - CSS 段組みレイアウト - - Reference - - 一括指定プロパティ - - 段組み -translation_of: Web/CSS/columns ---- -
{{CSSRef}}
- -

CSScolumns プロパティは、段組みされた要素の段の幅や段数を設定します。

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

これは {{cssxref('column-width')}} と {{cssxref("column-count")}} の両方を一度に便利に宣言できる一括指定プロパティです。他の一括指定プロパティと同様に、指定されなかった個別の値は初期値が設定されます。

- -

構文

- -
/* 段の幅 */
-columns: 18em;
-
-/* 段数 */
-columns: auto;
-columns: 2;
-
-/* 段の幅と段数の両方 */
-columns: 2 auto;
-columns: auto 12em;
-columns: auto auto;
-
-/* グローバル値 */
-columns: inherit;
-columns: initial;
-columns: unset;
- -

columns プロパティは以下に挙げる値を1つまたは2つで、順不同で指定します。

- -

- -
-
<'column-width'>
-
{{cssxref("<length>")}} 値または auto キーワードで、段の幅を最適化するヒントになります。実際の段の幅はより広くなったり(余白を埋めるため)、より狭くなったり(利用可能なスペースが指定された段の幅よりも小さい場合のみ)します。この値は正の数だけで、そうでなければ宣言は無効になります。
-
<'column-count'>
-
正の {{cssxref("<integer>")}} のみで、要素の中で流れる理想的な段数を記述します。 {{cssxref("column-width")}} が auto 以外の値で一緒に設定された場合は、最大の段数を示します。
-
- -

構文形式

- -{{csssyntax}} - -

- -

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;
-}
- -

結果

- -

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

- -

仕様策定状況

- - - - - - - - - - - - - - - - -
仕様書策定状況コメント
{{SpecName('CSS3 Multicol', '#columns', 'columns')}}{{Spec2('CSS3 Multicol')}}初回定義。
- -

{{cssinfo}}

- -

ブラウザーの対応

- -

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

diff --git a/files/ja/web/css/columns/index.md b/files/ja/web/css/columns/index.md new file mode 100644 index 0000000000..cc9fab26d3 --- /dev/null +++ b/files/ja/web/css/columns/index.md @@ -0,0 +1,101 @@ +--- +title: columns +slug: Web/CSS/columns +tags: + - CSS + - CSS Property + - CSS 段組みレイアウト + - Reference + - 一括指定プロパティ + - 段組み +translation_of: Web/CSS/columns +--- +
{{CSSRef}}
+ +

CSScolumns プロパティは、段組みされた要素の段の幅や段数を設定します。

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

これは {{cssxref('column-width')}} と {{cssxref("column-count")}} の両方を一度に便利に宣言できる一括指定プロパティです。他の一括指定プロパティと同様に、指定されなかった個別の値は初期値が設定されます。

+ +

構文

+ +
/* 段の幅 */
+columns: 18em;
+
+/* 段数 */
+columns: auto;
+columns: 2;
+
+/* 段の幅と段数の両方 */
+columns: 2 auto;
+columns: auto 12em;
+columns: auto auto;
+
+/* グローバル値 */
+columns: inherit;
+columns: initial;
+columns: unset;
+ +

columns プロパティは以下に挙げる値を1つまたは2つで、順不同で指定します。

+ +

+ +
+
<'column-width'>
+
{{cssxref("<length>")}} 値または auto キーワードで、段の幅を最適化するヒントになります。実際の段の幅はより広くなったり(余白を埋めるため)、より狭くなったり(利用可能なスペースが指定された段の幅よりも小さい場合のみ)します。この値は正の数だけで、そうでなければ宣言は無効になります。
+
<'column-count'>
+
正の {{cssxref("<integer>")}} のみで、要素の中で流れる理想的な段数を記述します。 {{cssxref("column-width")}} が auto 以外の値で一緒に設定された場合は、最大の段数を示します。
+
+ +

構文形式

+ +{{csssyntax}} + +

+ +

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;
+}
+ +

結果

+ +

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

+ +

仕様策定状況

+ + + + + + + + + + + + + + + + +
仕様書策定状況コメント
{{SpecName('CSS3 Multicol', '#columns', 'columns')}}{{Spec2('CSS3 Multicol')}}初回定義。
+ +

{{cssinfo}}

+ +

ブラウザーの対応

+ +

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

-- cgit v1.2.3-54-g00ecf