<div class="catp"> <div class="catt"> <img src="cat-2.png"> </div> <div class="catt"> <p>We sleep whenever we want.We sleep wherever we</p> <p>Want.All places can be our beds.</p> <p>We sleep whenever we want.We sleep wherever we</p> <p>Want.All places can be our beds.</p> <p>We sleep whenever we want.We sleep wherever we</p> <p>Want.All places can be our beds.</p> </div> <div class="catt"> <p>We sleep whenever we want.We sleep wherever we</p> <p>Want.All places can be our beds.</p> <p>We sleep whenever we want.We sleep wherever we</p> <p>Want.All places can be our beds.</p> <p>We sleep whenever we want.We sleep wherever we</p> <p>Want.All places can be our beds.</p> </div> <div class="catt"> <img src="cat-3.png"> </div> </div>```
.catp { display:flex; flex-wrap:wrap; gap: 50px 180px } .catt { flex:1 0 calc(50% - 180px); }
上記のコードの中の
gap: 50px 180px
flex:1 0 calc(50% - 180px);
この2行は、どういう意味でしょうか。
回答1件
あなたの回答
tips
プレビュー