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/column-span/index.html | 115 -------------------------------- files/ja/web/css/column-span/index.md | 115 ++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+), 115 deletions(-) delete mode 100644 files/ja/web/css/column-span/index.html create mode 100644 files/ja/web/css/column-span/index.md (limited to 'files/ja/web/css/column-span') diff --git a/files/ja/web/css/column-span/index.html b/files/ja/web/css/column-span/index.html deleted file mode 100644 index 1fd646cc09..0000000000 --- a/files/ja/web/css/column-span/index.html +++ /dev/null @@ -1,115 +0,0 @@ ---- -title: column-span -slug: Web/CSS/column-span -tags: - - CSS - - CSS Multi-column Layout - - CSS Property - - Reference - - 'recipe:css-property' -translation_of: Web/CSS/column-span ---- -
{{CSSRef}}
- -

column-spanCSS のプロパティで、値に all を設定した場合、段組みレイアウトで要素をすべての段にまたがらせることができます。

- -
{{EmbedInteractiveExample("pages/css/column-span.html")}}
- -
/* キーワード値 */
-column-span: none;
-column-span: all;
-
-/* グローバル値 */
-column-span: inherit;
-column-span: initial;
-column-span: unset;
-
- -

複数の段にまたがる要素は、スパニング要素 (spanning element) と呼びます。

- -

構文

- -

column-span プロパティは以下に挙げたキーワード値のうちの一つで指定します。

- -

- -
-
none
-
この要素は複数の段にまたがりません。
-
all
-
この要素がすべての段にまたがります。この要素よりも前に現れた通常フローのコンテンツは、自動的にすべての段で均等になります。この要素は新しいブロック整形コンテキストを生成します。
-
- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

段をまたぐ見出しの設定

- -

この例では、見出しが記事のすべての段にまたがって作成されます。

- -

HTML

- -
<article>
-  <h2>Header spanning all of the columns</h2>
-  <p>
-     The h2 should span all the columns. The rest
-     of the text should be distributed among the columns.
-  </p>
-  <p>This is a bunch of text split into three columns using the CSS `columns` property. The text is equally distributed over the columns.</p>
-  <p>This is a bunch of text split into three columns using the CSS `columns` property. The text is equally distributed over the columns.</p>
-  <p>This is a bunch of text split into three columns using the CSS `columns` property. The text is equally distributed over the columns.</p>
-  <p>This is a bunch of text split into three columns using the CSS `columns` property. The text is equally distributed over the columns.</p>
-</article>
-
- -

CSS

- -
article {
-  columns: 3;
-}
-
-h2 {
-  column-span: all;
-}
-
- -

結果

- -

{{EmbedLiveSample('Making_a_heading_span_columns', 'auto', 260)}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS3 Multicol', '#column-span', 'column-span')}}{{Spec2('CSS3 Multicol')}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.column-span")}}

- -

関連情報

- - diff --git a/files/ja/web/css/column-span/index.md b/files/ja/web/css/column-span/index.md new file mode 100644 index 0000000000..1fd646cc09 --- /dev/null +++ b/files/ja/web/css/column-span/index.md @@ -0,0 +1,115 @@ +--- +title: column-span +slug: Web/CSS/column-span +tags: + - CSS + - CSS Multi-column Layout + - CSS Property + - Reference + - 'recipe:css-property' +translation_of: Web/CSS/column-span +--- +
{{CSSRef}}
+ +

column-spanCSS のプロパティで、値に all を設定した場合、段組みレイアウトで要素をすべての段にまたがらせることができます。

+ +
{{EmbedInteractiveExample("pages/css/column-span.html")}}
+ +
/* キーワード値 */
+column-span: none;
+column-span: all;
+
+/* グローバル値 */
+column-span: inherit;
+column-span: initial;
+column-span: unset;
+
+ +

複数の段にまたがる要素は、スパニング要素 (spanning element) と呼びます。

+ +

構文

+ +

column-span プロパティは以下に挙げたキーワード値のうちの一つで指定します。

+ +

+ +
+
none
+
この要素は複数の段にまたがりません。
+
all
+
この要素がすべての段にまたがります。この要素よりも前に現れた通常フローのコンテンツは、自動的にすべての段で均等になります。この要素は新しいブロック整形コンテキストを生成します。
+
+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

段をまたぐ見出しの設定

+ +

この例では、見出しが記事のすべての段にまたがって作成されます。

+ +

HTML

+ +
<article>
+  <h2>Header spanning all of the columns</h2>
+  <p>
+     The h2 should span all the columns. The rest
+     of the text should be distributed among the columns.
+  </p>
+  <p>This is a bunch of text split into three columns using the CSS `columns` property. The text is equally distributed over the columns.</p>
+  <p>This is a bunch of text split into three columns using the CSS `columns` property. The text is equally distributed over the columns.</p>
+  <p>This is a bunch of text split into three columns using the CSS `columns` property. The text is equally distributed over the columns.</p>
+  <p>This is a bunch of text split into three columns using the CSS `columns` property. The text is equally distributed over the columns.</p>
+</article>
+
+ +

CSS

+ +
article {
+  columns: 3;
+}
+
+h2 {
+  column-span: all;
+}
+
+ +

結果

+ +

{{EmbedLiveSample('Making_a_heading_span_columns', 'auto', 260)}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Multicol', '#column-span', 'column-span')}}{{Spec2('CSS3 Multicol')}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.column-span")}}

+ +

関連情報

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