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?

Tailwind CSS の flex between で要素を左端・右端の左右に配置する例

Posted at

両端に表示する例

  <div class="flex justify-between">
    <div>AAAA</div>
    <div>BBB</div>
  </div>
image

ちなみに要素が3個になると

  <div class="flex justify-between">
    <div>AAAA</div>
    <div>BBB</div>
    <div>CCC</div>
  </div>

3等分される

image

2個の要素を右端に固める例

flexをさらにflexで囲う

  <div class="flex justify-between">
    <div>AAAA</div>
    <div class="flex">
      <div>BBB</div>
      <div>CCC</div>
    </div>
  </div>
image

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

プロフィール・経歴

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?