1
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 3 years have passed since last update.

flexbox 基本

Posted at

参考記事

flexboxゲーム

htmlの格子

    <div class="container">
      <div class="box box-1">
      </div>
      <div class="box box-2">
      </div>
      <div class="box box-3">
      </div>
    </div>

基本概念

  • flexの使い方とを理解

    • flex-grow(伸び率)
    • flex-shrink(縮み率)
    • flex-basis(基本幅を指定できる)
  • flex-grow

スクリーンショット 2019-12-16 11.14.35.png

  • flex-shrink

スクリーンショット 2019-12-16 11.15.37.png

  • flex-basis

スクリーンショット 2019-12-16 11.15.37.png

  • 一括設定

スクリーンショット 2019-12-16 11.17.36.png

よく使うプロパティ

  • display: flex;
  • justify-content: center;
  • align-items: center;
  • order: 1,2,3; 順番変更
1
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
1
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?