コンテンツにスキップ

Template:Div col

半永久的に拡張半保護されているテンプレート
テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]
ブラウザのCSS3マルチカラムレイアウト対応
プロパティ IE Edge Firefox Safari Chrome Opera
column-width
column-count
≥ 10
(2012)
≥ 12
(2015)
≥ 1.5
(2005)
≥ 3
(2007)
≥ 1
(2008)
≥ 11.1
(2011)
columns ≥ 10
(2012)
≥ 12
(2015)
≥ 9
(2011)
≥ 3
(2007)
≥ 1
(2008)
≥ 11.1
(2011)
break-before
break-after
break-inside
≥ 10
(2012)
≥ 12
(2015)
≥ 65
(2019)
≥ 10
(2016)
≥ 50
(2016)
≥ 11.1
(2011)

{{Div col}} {{div col end}} 

使


|cols=

218em

|colwidth=

cols px, em, % 

|small=

yes  (90%) 

|rules=

yes 1px dashed blue; CSS

|gap=

1em

|style=

CSS

使


218em
{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}


  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

cols= は省略できます。

{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

表示

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

colwidth= は省略できます。第二引数であることに注意します。

{{Div col||10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

表示

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

small=yes で文字サイズが小さくなります。

{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

表示

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

rules の例

{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

表示

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

gap の例

{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

表示

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

技術的な詳細


CSS

-moz-column-countFirefoxMozilla/Gecko使

-webkit-column-countSafariWebKit使

column-countCSS3CSS3 module: Multi-column layout

{{Columns-list}}


{{Columns-list}}<ul>...</ul><ol>...</ol>margin-top[ 1][ 2]

TemplateData

これはビジュアルエディターテンプレートウィザードにより使用されるテンプレートのためのTemplateData文書です。

Div col

Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with {{div col end}}.

テンプレートパラメーター[テンプレートデータを編集]

パラメーター説明状態
colscols 1

Specifies the number of columns.

既定
2
数値非推奨
colwidthcolwidth 2

Specifies the width of columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays. This overrides the 'cols' setting.

文字列省略可能
rulesrules

Produces vertical rules between the columns if set to yes.

文字列省略可能
gapgap

Specifies the space between the content of adjacent columns.

文字列省略可能
stylestyle

Specifies any custom styling.

文字列省略可能
contentcontent

Specifies the content.

文字列省略可能

関連項目

段組みテンプレート

Yes :可能 No :不可能
テンプレート群 種類

ウィキテーブルコード
の処理dagger

レスポンシブ・デザイン
モバイル対応
最初 段組み分け 最後
"Col" Table Yes No {{Col-begin}}
または{{Col-begin-small}}
{{Col-break}}
{{Col-2}} .. {{Col-5}}
{{Col-end}}
"Columns" Table No No {{Columns}}
"Multicol" Table Yes Yes {{Multicol}} {{Multicol-break}} {{Multicol-end}}
"Col-float" CSS float Yes Yes {{Col-float}} {{Col-float-break}} {{Col-float-end}}
"Columns-start" CSS float Yes Yes {{Columns-start}} {{Column}} {{Columns-end}}
"Div col" CSS columns Yes Yes {{Div col}} {{No col break}}(この範囲を分割させない指定) {{Div col end}}
"Columns-list" CSS columns No Yes {{Columns-list}}
"Flexbox"double-dagger CSS Flexbox英語版 No Yes {{Flexbox}} {{Flex-item}}
{{Flex-item start}} .. {{Flex-item end}}
"Flexbox start"double-dagger CSS Flexbox Yes Yes {{Flexbox start}} {{Flexbox end}}

dagger (Help:#) ({| | || |- |}) 使{{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}HTML (<table>...</table>, <tr>...</tr>) 使

double-dagger Flexbox使CSS columns使

  1. ^ この現象はデスクトップ版のベクター外装などで発生します。
  2. ^ Template‐ノート:Columns-list#1: margin-top関連」を参照。

外部リンク