I wonder if it's possible to do this with flexboxes.
Initially I had a markup of 3 columns
Markup 1:
|A| |B| |C|
|A| |B| |C|
|A| |B| |C|
|A| |B| |C|
(display: flex;, justify-content: space-between;)
Now I need to make a more complex layout.
Markup 2:
_______
|DDDDDD| |C|
|C|
|A| |B| |C|
|A| |B| |C|
|A| |B| |C|
So, what I did - I put columns |A| and |B| inside a <div> alongside with a row |D|.
__________
||DDDDDD|| |C|
| | |C|
||A| |B|| |C|
||A| |B|| |C|
||A| |B|| |C|
---------- |C|
But now I can't make the columns to have same space in between. Whatever I do the spaces between the blocks are doesn't feels the same as at the Markup 1.
I either have one of the following results
//This //Or this // Or even this
_______ ______ ______
|DDDD| |C| |DDDDDD||C| |DDDD||C|
|C| |C| |C|
|A||B| |C| |A| |B||C| |A||B||C|
|A||B| |C| |A| |B||C| |A||B||C|
|A||B| |C| |A| |B||C| |A||B||C|
But what I need is:
_______
|DDDDDD| |C|
|C|
|A| |B| |C|
|A| |B| |C|
|A| |B| |C|
Of course I can use margin/padding, but... doesn't feel right.
I wonder, how can I achieve that with flexboxes?