Flexbox in CSS & HTML (Tutorial) - develop responsive layouts
- 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.
28 Videos, 199 minutes
Intro to the tutorial
Flexbox in CSS & HTML: 1 | What can you expect in the course?
2 minThis is what you can expect in the Flexbox in CSS and HTML course.
Introduction
Flexbox in CSS & HTML: 2.1 | Why Flexbox and how does it work?
6 minWhat is flexbox layout and why should you use it at all?
Flexbox in CSS & HTML: 2.2 | Setting up the initial project
6 minThis is where the project is set up in which work will then continue.
Flexbox Layout – Basics
Flexbox in CSS & HTML: 3.1 | Structure of the example structure
10 minHere 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.
Flexbox in CSS & HTML: 3.2 | Distribute child elements evenly
15 minHow can the space be divided evenly or in certain proportions in the flexbox layout?
Flexbox in CSS & HTML: 3.3 | Child elements - Distribute space (exercise)
4 minA little exercise that requires a little (simple) math.
Flexbox in CSS & HTML: 3.4 | Concrete example for responsive design
11 minHere I present a horizontal layout with two sidebars that adapts responsively to the width.
Flexbox in CSS & HTML: 3.5 | Alignment of child elements
6 minChild elements can be aligned by the flex container along the transverse axis. Here I show how this can be set.
Flexbox in CSS & HTML: 3.6 | Stretch and single alignment
6 minThe alignment of all child elements can be adjusted not only for the container, but also for the individual elements using align-self.
Flexbox in CSS & HTML: 3.7 | Stretch and single alignment (exercise)
7 minA small exercise for individual alignment with a cube.
Flexbox in CSS & HTML: 3.8 | Alignment in main direction
5 minNot only can you align along the transverse axis in a flex container, you can also adjust the alignment along the main axis ;-)
Flexbox in CSS & HTML: 3.9 | Example for alignment in main direction
4 minA small example of how aligning along the main axis can be used very well for a frequent layout.
Flexbox in CSS & HTML: 3.10 | Base length in flex direction
7 minIf 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.
Flexbox in CSS & HTML: 3.11 | Regulate the size increase in flex direction with flex-grow
8 minHow much should an element grow if there is more space available than the flex-base specifies? This can be specifically set with flex-grow.
Flexbox in CSS & HTML: 3.12 | Use flex-shrink to regulate the reduction in the flex direction
12 minHow much should an element shrink if there is less space than the flex-basis specifies? This can be specifically set with flex-shrink.
Flexbox in CSS & HTML: 3.13 | Wrapping
17 minChild 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.
Flexbox in CSS & HTML: 3.14 | The flex-flow property
5 minflex-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 ;-)
Flexbox in CSS & HTML: 3.15 | Wrapping (Exercise)
5 minA task for flex-wrap.
Flexbox in CSS & HTML: 3.16 | Gap
5 minSpacing 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.
Flexbox in CSS & HTML: 3.17 | Order and Reverse Direction
7 minOrder 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.
Flexbox in CSS & HTML: 3.18 | Order (Exercise)
2 minLet'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.
Examples of layouts with Flexbox
Flexbox in CSS & HTML: 4.1 | Centering
4 minIt 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.
Flexbox in CSS & HTML: 4.2 | 3 columns, 3 rows
9 minWho doesn't know the 3-splitter? If it adapts to the available space, there's not much left to responsive design.
Flexbox in CSS & HTML: 4.3 | Form inputs
7 minAre 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.
Flexbox in CSS & HTML: 4.4 | Nested layout
9 minVery often you have to deal with nested layouts, but with Flex-Layout even these are no longer a big challenge.
Flexbox in CSS & HTML: 4.5 | Chat-Layout
7 minNowadays, 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.
Flexbox in CSS & HTML: 4.6 | Gallery-Layout
9 minSince 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.
Conclusion
Flexbox in CSS & HTML: 5 | Conclusion and outlook
4 minNow 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.
Comment now „Flexbox in CSS & HTML (Tutorial) - develop responsive layouts“