Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ 方向の制御 | Flexboxによるモダンレイアウト
CSSの基礎

book方向の制御

メニューを表示するにはスワイプしてください

flex-direction プロパティは、フレックスアイテムが配置される方向を指定するためのもの。 デフォルトではこのプロパティは row に設定されており、英語をデフォルト言語とするブラウザでは左から右へのレイアウトとなる。 設定可能な値は以下の通り:

flex-direction: row | column | row-reverse | column-reverse;

次のウェブサイトナビゲーションを例として考える。

row

index.html

index.html

index.css

index.css

copy

row-reverse(行の逆方向)

index.html

index.html

index.css

index.css

copy

column

アイテムの幅に注意。親要素の全幅を占める。

index.html

index.html

index.css

index.css

copy

column-reverse

index.html

index.html

index.css

index.css

copy
question mark

flex-direction プロパティは何をしますか?

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 4.  2

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 4.  2
some-alt