Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Setting the Flex Direction for Layouts | 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
Setting the Flex Direction for Layouts

The flex-direction property enables us to determine the direction in which flex items are arranged. By default, this property is set to row, resulting in a left-to-right layout in browsers that use English as the default language. You can set it to:

css

Let's consider the next website navigation as an example.

row

html

index.html

css

index.css

copy

row-reverse

html

index.html

css

index.css

copy

column

Pay attention to the width of the items; they cover the entire width of the parent.

html

index.html

css

index.css

copy

column-reverse

html

index.html

css

index.css

copy
question mark

What does the flex-direction property do?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 4. Kapitel 2

Fragen Sie AI

expand
ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

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
Setting the Flex Direction for Layouts

The flex-direction property enables us to determine the direction in which flex items are arranged. By default, this property is set to row, resulting in a left-to-right layout in browsers that use English as the default language. You can set it to:

css

Let's consider the next website navigation as an example.

row

html

index.html

css

index.css

copy

row-reverse

html

index.html

css

index.css

copy

column

Pay attention to the width of the items; they cover the entire width of the parent.

html

index.html

css

index.css

copy

column-reverse

html

index.html

css

index.css

copy
question mark

What does the flex-direction property do?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

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