0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

画面に収まりきらないコンテンツを折り返し表示する方法

Posted at

商品一覧表示を実装中、
親要素に display: flex; をかけただけだと
スクリーンショット 2020-09-04 12.44.31.png

このように一列に横並びになってしまうためブラウザからはみ出てしまう。
そこで同じ親要素に、flex-wrap: wrap;(画面幅に収まらない場合は折り返すcss)をかけると
スクリーンショット 2020-09-04 12.48.32.png
のように折り返し処理をしてくれる。

コード

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?