In my website layout, I have arranged li elements in a 2 column design. I am looking to implement a specific functionality where if a div element (inside an li element) is clicked, it should add a class with the following CSS properties:
-webkit-column-break-before:always;
-moz-column-break-before:always;
background-color: fuchsia; /* only for demonstration */
This feature will help me ensure certain elements float onto the second column, especially when printing.
However, I have found that this function only seems to work in Safari and not in Chrome or Firefox (running on the latest versions).
To better understand how this works, please click on the grey element in the provided example: https://jsfiddle.net/nickkkk/9nrtdg6q/3/