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-rule/index.md | 117 ++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 files/ja/web/css/column-rule/index.md (limited to 'files/ja/web/css/column-rule/index.md') diff --git a/files/ja/web/css/column-rule/index.md b/files/ja/web/css/column-rule/index.md new file mode 100644 index 0000000000..768c36a8d8 --- /dev/null +++ b/files/ja/web/css/column-rule/index.md @@ -0,0 +1,117 @@ +--- +title: column-rule +slug: Web/CSS/column-rule +tags: + - CSS + - CSS Multi-column Layout + - CSS Property + - Reference + - 'recipe:css-property' +browser-compat: css.properties.column-rule +translation_of: Web/CSS/column-rule +--- +
{{CSSRef}}
+ +

column-rule一括指定を行う CSS のプロパティで、段組みレイアウトで段間に引かれる線の太さ、スタイル、色を設定します。

+ +
{{EmbedInteractiveExample("pages/css/column-rule.html")}}
+ +

これは一括指定プロパティであり、一回の便利な宣言で個別の column-rule-* プロパティ ({{Cssxref("column-rule-width")}}, {{Cssxref("column-rule-style")}}, {{Cssxref("column-rule-color")}}) を設定できます。

+ +
+

メモ: 他の一括指定プロパティと同様に、指定されなかった個別の値は初期値が設定されます (以前に個別指定プロパティを使用して設定された値を上書きする可能性があります)。

+
+ +

構文

+ +
column-rule: dotted;
+column-rule: solid 8px;
+column-rule: solid blue;
+column-rule: thick inset blue;
+
+/* グローバル値 */
+column-rule: inherit;
+column-rule: initial;
+column-rule: revert;
+column-rule: unset;
+
+ +

column-rule プロパティは、以下に挙げる値のうち 1 ~ 3 個を任意の順序で指定します。

+ +

+ +
+
<'column-rule-width'>
+
{{cssxref("<length>")}} または 3 つのキーワード、 thinmediumthick のうちの 1 つです。詳しくは {{cssxref("border-width")}} を参照してください。
+
<'column-rule-style'>
+
有効な値と詳細は {{cssxref("border-style")}} を参照してください。
+
<'column-rule-color'>
+
{{cssxref("<color>")}} 値です。
+
+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

例 1

+ +
/* "medium dotted currentcolor" と同じ */
+p.foo { column-rule: dotted; }
+
+/* "medium solid blue" と同じ */
+p.bar { column-rule: solid blue; }
+
+/* "8px solid currentcolor" と同じ */
+p.baz { column-rule: solid 8px; }
+
+p.abc { column-rule: thick inset blue; }
+
+ +

例 2

+ +

HTML

+ +
<p class="content-box">
+  This is a bunch of text split into three columns.
+  Take note of how the `column-rule` property is used
+  to adjust the style, width, and color of the rule
+  that appears between the columns.
+</p>
+
+ +

CSS

+ +
.content-box {
+  padding: 0.3em;
+  background: #ff7;
+  column-count: 3;
+  column-rule: inset 2px #33f;
+}
+
+ +

結果

+ +

{{EmbedLiveSample('Example_2')}}

+ +

仕様書

+ +{{Specifications}} + +

ブラウザーの互換性

+ +

{{Compat}}

+ +

関連情報

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