I'm trying to build something in CSS and I'm hitting a bug.
I have a few elements in my flex that need to be double width and double height compared to the rest of the elements.
See example here of what I got right now. http://jsfiddle.net/pJy66/25/
I'd like to display it like this
(1)(2)(3)(3)
(4)(5)(3)(3)
(6)(6)(7)(8)
(6)(6)(9)(0)
But as you can see in the fiddle, it seems to clear the elements so it shows like this
(1)(2)(3)(3)
( )( )(3)(3)
(4)(5)(6)(7)
(8)(8)(9)(0)
(8)(8)( )( )
So can I do some kind of a rowspan to have the 4-5 elements on the left of element 3?
.foo {
display:flex;
flex-flow: row wrap;
justify-content: center;
}
.foo div{
background:#888;
width:25%;
height:50px;
}
.foo .b1{background:#000;}
.foo .b2{background:#555;}
.foo .b3{background:#111;}
.foo .b4{background:#666;}
.foo .b5{background:#222;}
.foo .b6{background:#777;}
.foo .b7{background:#333;}
.foo .b8{background:#888;}
.foo .b9{background:#444;}
.foo .b10{background:#999;}
.foo .b1, .foo .b8{
height:100px;
width:50%
}
<div class="foo">
<div class="b1"></div>
<div class="b2"></div>
<div class="b3"></div>
<div class="b4"></div>
<div class="b5"></div>
<div class="b6"></div>
<div class="b7"></div>
<div class="b8"></div>
<div class="b9"></div>
<div class="b10"></div>
</div>