I just realized a layout using css3 columns and now i am wondering how to force a column-break in all browsers. Just searched the (at least) hole internet and could not find an solution as column-break-before seems to have no impact on the layout in non-webkit browsers. There seem to be no implementation in Firefox.
Basically, what i want is, that every tag, having a specific class (.break-column-before in the fiddle), breaks into a new column. Seems to be an impossible task. Any suggestions?
Basic HTML
<div class="content">
<div id="main">
<h1>Headline 1</h1>
<p>Text...</p>
<h2 class="break-column-before">Bastards.</h2>
<p>More Text...</p>
</div>
</div>
The columns are generated like this:
-moz-column-width: 280px;
-moz-column-gap: 20px;
-moz-column-rule: 1px dashed #eee;
-webkit-column-width: 280px;
-webkit-column-gap: 20px;
-webkit-column-rule: 1px dashed #eee;
column-width: 280px;
column-gap: 20px;
column-rule: 1px dashed #eee;
The solution, found in the other question (CSS3 Column Break), mentioned in the comments, does break the columns before, but suppresses further columns breaks inside the div. This is not possible for my layout, as it is responsible and with only a horizontal scrollbar.
The website can be found here: Website with the Problem The fiddle (as suggested in the comments) can be found here: jsFiddle
I also would be open for an answer using jQuery, if pure css3 is impossible.