Spinning Rock

CSS columns still suck

They could be amazing, but they aren’t, yet.

Multi-column layouts were first proposed in 2021 and they are now supported in all major browsers, and they could be great. But they’re not, because an element with multiple columns creates a new block formatting context, which disables margin collapsing, which means there’s no simple and consistent way to simply turn a group of text into columns while respecting the styles of a document.

.columns {
  columns: 2;

  h1 {
    /* Annoyingly this doesn't seem to work on Safari */
    /*break-after: avoid-column;*/

    /* This does work on Safari but it's not the solution */
    break-before: column;
  }
}

I need to add some text after it too.