Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Aligning Items Vertically | Section
CSS Fundamentals

bookAligning Items Vertically

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

The align-items property governs the vertical arrangement of flex items. Its default value is stretch.

align-items: stretch | center | flex-start | flex-end | baseline;

Let's run the following examples to get where do we need it.

stretch

It means that we extend items to the entire length of the cross axis.

index.html

index.html

index.css

index.css

copy

center

Items are in the center of the cross axis.

index.html

index.html

index.css

index.css

copy

flex-start

All items start at the beginning of the cross axis.

index.html

index.html

index.css

index.css

copy

flex-end

All items are in the end of the cross axis (in the end of the parent flex container).

index.html

index.html

index.css

index.css

copy

baseline

All flex items are aligned based on their text content baseline.

index.html

index.html

index.css

index.css

copy

1. What does the align-items property do?

2. Which of the following values can be used with the align-items property?

question mark

What does the align-items property do?

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

question mark

Which of the following values can be used with the align-items property?

すべての正しい答えを選択

すべて明確でしたか?

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

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

セクション 1.  17

AIに質問する

expand

AIに質問する

ChatGPT

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

セクション 1.  17
some-alt