Back to the index.
This module serves to split up an element into multiple columns, and to give further instructions about a few details.
This is the mobile table. See also the desktop table.
All WebKit-based browsers need the -webkit- prefix. All Gecko-based browsers need -moz-. So use those prefixes.
I'm writing a CSS book.
| Making sure a column breaks occurs just before or after an element | wk | No | wk | wk | Yes | wk | wk | No | wk | No | wk | No | |||||||||||||||
-webkit-column-break-before: always; break-before: column; Note the different keywords in the standards-based an the WebKit syntax. Use |
|||||||||||||||||||||||||||
|
Avoid column breaks within an element Secondary test page: my CSS main page, where I use columns for the index. Individual entries should not be broken over two columns. |
A+B | No | A+B | Yes | No | A+B | No | A+B | A+B | No | No | ||||||||||||||||
-webkit-column-break-inside: avoid; break-inside: avoid; |
|||||||||||||||||||||||||||
Last major update on 17 February 2013.
| Making sure a column breaks occurs just before or after an element | Alter |
No | Alter |
Yes | Alter |
No | Alter |
Alter |
No | Alter |
No | |||||||||||||
-webkit-column-break-before: always; break-before: column; Note the different keywords in the standards-based an the WebKit syntax. Use |
||||||||||||||||||||||||
|
Avoid column breaks within an element Secondary test page: my CSS main page, where I use columns for the index. Individual entries should not be broken over two columns. |
A+B | No | A+B | Yes | No | A+B | No | A+B | No | A+B | No | No | ||||||||||||
-webkit-column-break-inside: avoid; break-inside: avoid; |
||||||||||||||||||||||||
| Yes | Yes | Yes | Yes | No | Yes | Yes | No | -moz- | ||||||||||||||||
-prefix-column-count: 4; |
||||||||||||||||||||||||
| No | No | Yes | No | No | No | No | No | |||||||||||||||||
column-fill: auto; By default, columns should be balanced if the height is too large ( |
||||||||||||||||||||||||
| Yes | Yes | Yes | Yes | No | Yes | Yes | No | |||||||||||||||||
-prefix-column-gap: 5em; |
||||||||||||||||||||||||
| Yes | Yes | Yes | Yes | No | Yes | No | Yes | Yes | No | Yes | ||||||||||||||
-prefix-column-rule: 5px double red; |
||||||||||||||||||||||||
| Yes | No | No | Yes | Some |
No | Yes | Yes | No | No | Yes | No | Yes | No | |||||||||||
-prefix-column-span: all;
This is the most insane compatibility pattern I’ve ever seen. I hoped that support could be tied to specific WebKit versions, but it can’t. 535+ never support it, but 534 most of the time (HTC Android 4, Dolphin and One do not support it, rest does), and 533 doesn’t most of the time (UC does). I have no fucking clue what’s going on. |
||||||||||||||||||||||||
| Yes | Yes | Yes | Yes | No | Yes | Yes | No | -moz- | ||||||||||||||||
-prefix-column-width: 10em; |
||||||||||||||||||||||||