Flexbox in CSS & HTML (Tutorial) - develop responsive layouts Language: German

Flexbox in CSS & HTML (Tutorial) - develop responsive layouts

Web design, CMS & development 28 Videos · 3.3 h Video training · English Stephan Haewß by Stephan Haewß

Do responsive layouts always cause you problems when developing websites and apps? Change that with Flexbox layouts! Stephan Haewß uses theory, practical exercises and concrete examples to explain how to use Flexbox in CSS and HTML correctly and for different layouts. The modern solution for flexible desktop and mobile views of your pages!

  • How to develop responsive layouts with Flexbox in CSS and HTML
  • Explained step by step: basics, arrangement, alignment, spacing and sequences
  • Specific examples of typical layouts such as centering and nested layouts
  • Learn & understand: with practical exercises including exercise materials
  • Ideal for web developers, web designers and front-end developers
  • A 3-hour intensive course on Flexbox by developer and trainer Stephan Haewß

Start the tutorial and expand your HTML and CSS knowledge with everything you need to know about Flexbox.

content

28 Videos, 199 minutes

Intro to the tutorial

1 Videos · 2 minutes
01 Open free of charge

Flexbox in CSS & HTML: 1 | What can you expect in the course?

This is what you can expect in the Flexbox in CSS and HTML course.

01

Flexbox in CSS & HTML: 1 | What can you expect in the course?

2 min Open

Introduction

2 Videos · 12 minutes
02 Open free of charge

Flexbox in CSS & HTML: 2.1 | Why Flexbox and how does it work?

What is flexbox layout and why should you use it at all?

03 Open free of charge

Flexbox in CSS & HTML: 2.2 | Setting up the initial project

This is where the project is set up in which work will then continue.

02

Flexbox in CSS & HTML: 2.1 | Why Flexbox and how does it work?

6 min Open
03

Flexbox in CSS & HTML: 2.2 | Setting up the initial project

6 min Open

Flexbox Layout – Basics

18 Videos · 136 minutes
04 Open

Flexbox in CSS & HTML: 3.1 | Structure of the example structure

Here I present the example structure and the debugging options integrated in VS Code with the MS Edge tools. In addition, the flexbox layout is activated for the first time in this video and the direction is set.

05 Open

Flexbox in CSS & HTML: 3.2 | Distribute child elements evenly

How can the space be divided evenly or in certain proportions in the flexbox layout?

06 Open

Flexbox in CSS & HTML: 3.3 | Child elements - Distribute space (exercise)

A little exercise that requires a little (simple) math.

07 Open

Flexbox in CSS & HTML: 3.4 | Concrete example for responsive design

Here I present a horizontal layout with two sidebars that adapts responsively to the width.

08 Open

Flexbox in CSS & HTML: 3.5 | Alignment of child elements

Child elements can be aligned by the flex container along the transverse axis. Here I show how this can be set.

09 Open

Flexbox in CSS & HTML: 3.6 | Stretch and single alignment

The alignment of all child elements can be adjusted not only for the container, but also for the individual elements using align-self.

10 Open

Flexbox in CSS & HTML: 3.7 | Stretch and single alignment (exercise)

A small exercise for individual alignment with a cube.

11 Open

Flexbox in CSS & HTML: 3.8 | Alignment in main direction

Not only can you align along the transverse axis in a flex container, you can also adjust the alignment along the main axis ;-)

12 Open

Flexbox in CSS & HTML: 3.9 | Example for alignment in main direction

A small example of how aligning along the main axis can be used very well for a frequent layout.

13 Open

Flexbox in CSS & HTML: 3.10 | Base length in flex direction

If you want to be flexible, you also need to be able to specify the size of the child elements regardless of the specific width or height. Fortunately, there is the flex-basis property, with which you can achieve exactly this. If you change the flex-direction, a width becomes a height and vice versa.

14 Open

Flexbox in CSS & HTML: 3.11 | Regulate the size increase in flex direction with flex-grow

How much should an element grow if there is more space available than the flex-base specifies? This can be specifically set with flex-grow.

15 Open

Flexbox in CSS & HTML: 3.12 | Use flex-shrink to regulate the reduction in the flex direction

How much should an element shrink if there is less space than the flex-basis specifies? This can be specifically set with flex-shrink.

16 Open

Flexbox in CSS & HTML: 3.13 | Wrapping

Child elements can not only shrink if there is less space, but can also be wrapped by the container. I show you how to control this with flex-wrap in this video.

17 Open

Flexbox in CSS & HTML: 3.14 | The flex-flow property

flex-direction and flex-wrap can be combined in the flex-flow property. This even makes sense if you only want to set flex-direction, as flex-flow is shorter ;-)

18 Open

Flexbox in CSS & HTML: 3.15 | Wrapping (Exercise)

A task for flex-wrap.

19 Open

Flexbox in CSS & HTML: 3.16 | Gap

Spacing is sometimes necessary to avoid making it unnecessarily uncomfortable for the human eye. Fortunately, gap is a CSS property that does exactly this for the child elements of a flex container.

20 Open

Flexbox in CSS & HTML: 3.17 | Order and Reverse Direction

Order is a must, especially for web interfaces, because they should be easy to use. The order sometimes also needs to be defined individually without moving elements in the DOM. The CSS property order is very well suited for this, as it allows you to easily change the visible order of the elements.

21 Open

Flexbox in CSS & HTML: 3.18 | Order (Exercise)

Let's test whether you have understood the sequence. There's even a second way to achieve the same result, but you'll surely figure it out too.

04

Flexbox in CSS & HTML: 3.1 | Structure of the example structure

10 min Open
05

Flexbox in CSS & HTML: 3.2 | Distribute child elements evenly

15 min Open
06

Flexbox in CSS & HTML: 3.3 | Child elements - Distribute space (exercise)

4 min Open
07

Flexbox in CSS & HTML: 3.4 | Concrete example for responsive design

11 min Open
08

Flexbox in CSS & HTML: 3.5 | Alignment of child elements

6 min Open
09

Flexbox in CSS & HTML: 3.6 | Stretch and single alignment

6 min Open
10

Flexbox in CSS & HTML: 3.7 | Stretch and single alignment (exercise)

7 min Open
11

Flexbox in CSS & HTML: 3.8 | Alignment in main direction

5 min Open
12

Flexbox in CSS & HTML: 3.9 | Example for alignment in main direction

4 min Open
13

Flexbox in CSS & HTML: 3.10 | Base length in flex direction

7 min Open
14

Flexbox in CSS & HTML: 3.11 | Regulate the size increase in flex direction with flex-grow

8 min Open
15

Flexbox in CSS & HTML: 3.12 | Use flex-shrink to regulate the reduction in the flex direction

12 min Open
16

Flexbox in CSS & HTML: 3.13 | Wrapping

17 min Open
17

Flexbox in CSS & HTML: 3.14 | The flex-flow property

5 min Open
18

Flexbox in CSS & HTML: 3.15 | Wrapping (Exercise)

5 min Open
19

Flexbox in CSS & HTML: 3.16 | Gap

5 min Open
20

Flexbox in CSS & HTML: 3.17 | Order and Reverse Direction

7 min Open
21

Flexbox in CSS & HTML: 3.18 | Order (Exercise)

2 min Open

Examples of layouts with Flexbox

6 Videos · 45 minutes
22 Open

Flexbox in CSS & HTML: 4.1 | Centering

It happens very often that you want to center elements and especially text horizontally and vertically (!). What was a cramp before Flexbox is a child's birthday party with Flexbox.

23 Open

Flexbox in CSS & HTML: 4.2 | 3 columns, 3 rows

Who doesn't know the 3-splitter? If it adapts to the available space, there's not much left to responsive design.

24 Open

Flexbox in CSS & HTML: 4.3 | Form inputs

Are there websites without forms? If so, there are not many. That's why it's very important to arrange them in an appealing way, which fortunately is no problem with Flexbox.

25 Open

Flexbox in CSS & HTML: 4.4 | Nested layout

Very often you have to deal with nested layouts, but with Flex-Layout even these are no longer a big challenge.

26 Open

Flexbox in CSS & HTML: 4.5 | Chat-Layout

Nowadays, web chat clients are a dime a dozen, and AI chatbots have been added to the list. But how can you implement a chat with Flexbox? I'll show you in this video.

27 Open

Flexbox in CSS & HTML: 4.6 | Gallery-Layout

Since Web 2.0 at the latest, you can find a gallery on almost every website. In this video, I describe how such a layout can be wonderfully implemented with Flexbox, for example.

22

Flexbox in CSS & HTML: 4.1 | Centering

4 min Open
23

Flexbox in CSS & HTML: 4.2 | 3 columns, 3 rows

9 min Open
24

Flexbox in CSS & HTML: 4.3 | Form inputs

7 min Open
25

Flexbox in CSS & HTML: 4.4 | Nested layout

9 min Open
26

Flexbox in CSS & HTML: 4.5 | Chat-Layout

7 min Open
27

Flexbox in CSS & HTML: 4.6 | Gallery-Layout

9 min Open

Conclusion

1 Videos · 4 minutes
28 Open

Flexbox in CSS & HTML: 5 | Conclusion and outlook

Now everything should be clear as far as the Flex layout is concerned. Finally, I'll describe what you should have learned, what else you can do and what other beautiful CSS layout options are available.

28

Flexbox in CSS & HTML: 5 | Conclusion and outlook

4 min Open
Comments (0)

Comment now „Flexbox in CSS & HTML (Tutorial) - develop responsive layouts“