Column-count is not working in Chrome

后端 未结 7 1543
一向
一向 2020-12-15 07:15

I have a text splitted in 4 columns and it works perfectly in Safari I don\'t know why I can see just 2 columns in Google Chrome.

Tested with Chrome 55.0.2883.95 (64

7条回答
  •  一向
    一向 (楼主)
    2020-12-15 08:00

    After suffering this issue with Chrome 80.0 the solution was from a comment on the question:

    .childbrick {
        break-inside: avoid-column;
    }
    

    This fixed both the odd lack of columns in Chrome as well as the column splitting which occurred if not using display:inline-block; .

    The comment references a Firefox issue with this workaround but I have found no such issues with Firefox version 73.

提交回复
热议问题