私は、C1、C2、C3、C4の4つの要素を持つフレックスボックスコンテナを持っています。フレックスアイテムを次の行の右端に移動
現在、すべて1行に表示されています。
私の目標は、C4をC3の下に表示することです。
私の目標を達成する方法を教えてもらえますか?前もって感謝します。 https://jsfiddle.net/vvqhejt3/3/
.flexbox {
display: flex;
border: 1px solid black;
width: 330px;
}
.content1 {
width: 100px;
margin-right: 10px;
background-color: blue;
height: 50px;
}
.content2 {
width: 100px;
margin-right: 10px;
background-color: yellow;
}
.content3 {
width: 100px;
margin-right: 10px;
background-color: red;
}
.content4 {
width: 100px;
background-color: green;
height: 10px;
}
<div class="flexbox">
<div class="content1">C1</div>
<div class="content2">C2</div>
<div class="content3">C3</div>
<div class="content4">C4</div>
</div>