Prevent break column within a ul/ol element using CSS columns
Prevent column breaking when we use CSS columns attribute
When we use CSS columns: n on a ul or ol element sometimes we need to prevent splitting an element between two columns.
For example we want the second title below to be above it's items on the second column
Title Item1 Item2 Item3 Title | Item1 Item2 Item3 Title Item1 |
After applying the break-inside: avoid-column CSS rule the result will be like this:
Title Item1 Item2 Item3 | Title Item1 Item2 Item3 Title Item1 |
CSS attribute: break-inside
Available values: auto | avoid | avoid-page | avoid-column | avoid-region
Initial: auto