@vince You are correct, that the solution involves a little bit of js, and that the problem is a reported bug in Firefox.
Your last comment about adding some js, is exactly what a friend of mine did. The js watches the size of the spanned div and then adjusts the padding of the main container.
You can see it in action and view the source here:
http://codepen.io/gpercifield/pen/PbMQmO/
html
<body onresize="myFunction()">
<div class="left-area-container" id="main">
<div id="left-area">
<div class="span-3-columns" id="spanDiv">
This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test.
<hr>
</div>
<div class="box" style="height:194px;">asdf</div> <div class="box" style="height:264px;">asdf</div> <div class="box" style="height:134px;">asdf</div> <div class="box" style="height:379px;">asdf</div> <div class="box" style="height:198px;">asdf</div> <div class="box" style="height:187px;">asdf</div> <div class="box" style="height:125px;">asdf</div> <div class="box" style="height:364px;">asdf</div> <div class="box" style="height:378px;">asdf</div> <div class="box" style="height:357px;">asdf</div> <div class="box" style="height:204px;">asdf</div> <div class="box" style="height:243px;">asdf</div> <div class="box" style="height:58px;">asdf</div> <div class="box" style="height:135px;">asdf</div> <div class="box" style="height:187px;">asdf</div> <div class="box" style="height:383px;">asdf</div> <div class="box" style="height:394px;">asdf</div> <div class="box" style="height:213px;">asdf</div> <div class="box" style="height:55px;">asdf</div> <div class="box" style="height:48px;">asdf</div>
</div>
</div>
<script>
/*Function watches the height of the spanned div and then adjusts the padding in the main div*/
function myFunction() {
var clientHeight = document.getElementById('spanDiv').offsetHeight;
console.log(clientHeight);
newpadding = clientHeight + 'px';
console.log(newpadding);
document.getElementById('main').style.paddingTop = newpadding;
}
myFunction();
</script>
</body>
css
#left-area {
-moz-column-count: 3;
column-count: 3;
-moz-column-gap: 60px;
padding: 0px 10px;
}
.span-3-columns {
position: absolute;
left: 0;
top: 0;
width: 100%;
}
.box{
background-color:rebeccapurple;
width: 100%;
padding: 4px;
margin: 0px 0px 10px;
}
.left-area-container {
position: relative;
}
@media (min-width: 401px) and (max-width: 700px) {
#left-area {
-moz-column-count: 2;
column-count: 2;
-moz-column-gap: 30px;
}
.box{
background-color:forestgreen;
}
}
@media (max-width: 400px) {
#left-area {
-moz-column-count: 1;
column-count: 1;
}
.box{
background-color:cadetblue;
}
}
Resize the window and watch it in action.
-webkit-column-count:3;column-span: allto.span-3-columnsand it's working for me on Chrome: jsfiddle.net/VAggrippino/syyar62b/5 JSFiddle doesn't do anything like autoprefixer or prefixfree, does it? I usually use CodePen.