Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Aligning Items Vertically in Flexbox | Mastering Flexbox for Layouts
CSS Fundamentals
course content

Kursinhalt

CSS Fundamentals

CSS Fundamentals

1. Getting Started with CSS
2. Styling Text in CSS
3. The CSS Box Model & Spacing Elements
4. Mastering Flexbox for Layouts
5. Adding Decorative Effects with CSS

book
Aligning Items Vertically in Flexbox

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

css

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.

html

index.html

css

index.css

copy

center

Items are in the center of the cross axis.

html

index.html

css

index.css

copy

flex-start

All items start at the beginning of the cross axis.

html

index.html

css

index.css

copy

flex-end

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

html

index.html

css

index.css

copy

baseline

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

html

index.html

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?

Select the correct answer

question mark

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

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 4. Kapitel 4
Wir sind enttäuscht, dass etwas schief gelaufen ist. Was ist passiert?
some-alt