Free Course Image CSS flexbox tutorial

Free online courseCSS flexbox tutorial

Duration of the online course: 1 hours and 18 minutes

3.67

StarStarStarHalf star

(3)

Build responsive layouts faster with this free CSS Flexbox course—master alignment, spacing, and navbars with hands-on practice and a certificate option.

In this free course, learn about

  • What CSS Flexbox is and when to use it for 1D layout
  • Flexbox terminology: flex container vs flex items, main axis vs cross axis
  • How to create flex and inline-flex containers with the display property
  • How flex-direction controls item placement; default is row
  • How flex-wrap controls wrapping; default is nowrap
  • How flex-flow shorthand combines flex-direction and flex-wrap
  • How justify-content aligns items along main axis; default is flex-start
  • How align-items aligns items on cross axis; common values and default stretch
  • How align-content distributes lines in multi-line flex; default is stretch
  • How order controls visual order; equal order values keep source order between them
  • How flex-grow, flex-shrink, flex-basis work; defaults 0, 1, auto
  • How to use the flex shorthand to set grow/shrink/basis efficiently
  • How align-self overrides align-items per item; default is auto
  • Practical patterns: responsive navbars and vertical/horizontal centering with Flexbox

Course Description

Flexbox is one of the most practical tools in modern CSS for building layouts that adapt smoothly to different screens. In this free online course, you will learn how to think in flexible rows and columns so you can create interfaces that stay aligned, evenly spaced, and easy to maintain. Instead of fighting floats and fragile positioning, you will gain a layout workflow that fits real product needs, from simple components to full page sections.

You will start by understanding the core idea behind Flexbox and the key terminology that helps you read and write layout code confidently. From there, the course guides you through the most important container properties, including how direction and wrapping change the way elements flow, and how combined configuration makes your layouts predictable. You will practice making elements distribute space naturally, align neatly along both axes, and behave consistently when content size varies.

Once the foundations are clear, the focus shifts to item-level control. You will learn how ordering works, when growth and shrinking should be allowed, and how sizing is determined when space is limited or abundant. This makes it much easier to build reusable UI pieces where buttons, cards, labels, and images behave well together without constant breakpoint fixes.

The course also emphasizes practical outcomes. You will apply Flexbox to common web development scenarios like responsive navigation bars and reliable centering, including vertical alignment patterns that are frequently used in landing pages and application interfaces. Throughout the lessons and exercises, you will reinforce what each property does and when to use it, helping you move from memorizing syntax to making solid layout decisions. By the end, you will be able to implement clean, responsive layouts with CSS Flexbox and feel confident adapting them to real projects.

Course content

  • Video class: Flexbox Tutorial - 1 - Introduction

    02m

  • Exercise: _What is Flexbox?

  • Video class: Flexbox Tutorial - 2 - Terminology

    02m

  • Exercise: _What are the two entities in flexbox?

  • Video class: Flexbox Tutorial - 3 - Flex Container Properties

    01m

  • Exercise: _What is the property that defines the direction in which the Flex items are placed in the container?

  • Video class: Flexbox Tutorial - 4 - Flex display

    03m

  • Exercise: _What is the value of the display property used to create an inline flex container?

  • Video class: Flexbox Tutorial - 5 - Flex direction

    02m

  • Exercise: _What is the default value of the Flex Direction property?

  • Video class: Flexbox Tutorial - 6 - Flex wrap

    04m

  • Exercise: _What is the default value of the Flex wrap property?

  • Video class: Flexbox Tutorial - 7 - Flex flow

    01m

  • Exercise: _What is the Flex flow property?

  • Video class: Flexbox Tutorial - 8 - Justify content

    05m

  • Exercise: _What is the default value for justify content in a flex container?

  • Video class: Flexbox Tutorial - 9 - Align items

    04m

  • Exercise: _What are the possible values for the "align-items" property in CSS flexbox?

  • Video class: Flexbox Tutorial - 10 - Align content

    04m

  • Exercise: _What is the default value of the align-content property in a flex container?

  • Video class: Flexbox Tutorial - 11 - Flex item properties

    01m

  • Exercise: _Which property controls the order in which an item appears in the Flex container?

  • Video class: Flexbox Tutorial - 12 - Order

    02m

  • Exercise: _What happens when you specify the same order number for more than one item in a Flex container?

  • Video class: Flexbox Tutorial - 13 - Flex grow

    04m

  • Exercise: _What is the default value of the Flex Grow property for all flex items?

  • Video class: Flexbox Tutorial - 14 - Flex Shrink

    04m

  • Exercise: _What is the default value of Flex shrink property?

  • Video class: Flexbox Tutorial - 15 - Flex basis

    03m

  • Exercise: _What is the default value of the Flex basis property?

  • Video class: Flexbox Tutorial - 16 - Flex

    02m

  • Exercise: _What is the recommended way to set flex grow, flex shrink, and flex basis for a flex item using the Flex property?

  • Video class: Flexbox Tutorial - 17 - Align self

    05m

  • Exercise: _What is the default value for aligned self property?

  • Video class: Flexbox Tutorial - 18 - Practical use cases

    00m

  • Exercise: _What are some of the real-world use cases of flexbox?

  • Video class: Flexbox Tutorial - 19 - Responsive Navbar

    05m

  • Exercise: _What property is used to make the items in the navbar distribute the space around them?

  • Video class: Flexbox Tutorial - 20 - Centering Item

    02m

  • Exercise: _What is the solution for centering an item vertically using Flexbox?

This free course includes:

1 hours and 18 minutes of online video course

Digital certificate of course completion (Free)

Exercises to train your knowledge

100% free, from content to certificate

Ready to get started?Download the app and get started today.

Install the app now

to access the course
Icon representing technology and business courses

Over 5,000 free courses

Programming, English, Digital Marketing and much more! Learn whatever you want, for free.

Calendar icon with target representing study planning

Study plan with AI

Our app's Artificial Intelligence can create a study schedule for the course you choose.

Professional icon representing career and business

From zero to professional success

Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.

You can also use the QR Code or the links below.

QR Code - Download Cursa - Online Courses

Course comments: CSS flexbox tutorial

N

Nothing

StarStarStarStarStar

very good course of flec

More free courses at Web Development

Free Ebook + Audiobooks! Learn by listening or reading!

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate