Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen What is the Flexbox? | Flexbox
CSS Fundamentals
course content

Kursinhalt

CSS Fundamentals

CSS Fundamentals

1. Introduction to CSS
2. Text Styles
3. Box Model and Layout
4. Flexbox
5. Decorative Effects

book
What is the Flexbox?

Flexbox, short for Flexible Box Layout, is a CSS module designed to simplify the alignment, distribution, and organization of elements within a container.

Flexbox uses a parent-child relationship. The parent is called the flex container, which controls the layout. The children are called flex items, whose size, position, and order can be controlled using flexbox properties.

Note

Flexbox behaves differently from block and inline elements. Unlike block elements, flex items do not stack vertically; they align in a row or column by default. Additionally, the margins at the edges of the container do not extend beyond its boundaries.

Flexbox in Action

Flexbox works by aligning items along the axes of the flex container. To enable Flexbox, simply apply the display: flex; property to the parent element. From there, you can customize how the items align and distribute within the container.

html

index.html

css

index.css

copy
In what direction are the flex items arranged by default?

In what direction are the flex items arranged by default?

Wählen Sie die richtige Antwort aus

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 4. Kapitel 1
We're sorry to hear that something went wrong. What happened?
some-alt