I have gone through the answers to inserting line breaks when using flex. However, my situation is a bit different.
I have a left column and a right column. The left column should always be 200px no matter what. The right column needs to contain three columns, then a line break to the next three columns.
As I have already specified flex-wrap: nowrap; this tends to complicate matters.
Any ideas if this is possible? I am sure that it must be but I have been knocking against this without a solution.
.flex {
display: flex;
flex-wrap: nowrap;
}
.line-break {
width: 100%;
}
.leftcol {
width: 200px;
border: 1px solid green;
}
.rightcol {
display: flex;
flex-wrap: wrap;
width: 100%;
border: 1px solid blue;
}
.rightcol div {
width: 100px;
margin: 1%;
border: 1px solid red;
}
<div class="flex">
<div class="leftcol">
Stuff
</div>
<div class="rightcol">
<div>1</div>
<div>2</div>
<div>3</div>
<div class="line-break"></div>
<div>4</div>
<div>5</div>
<div>6</div>
</div>
</div>