Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Introduction To CSS Flexbox
Rating: 4.5 out of 5(16 ratings)
4,775 students

Introduction To CSS Flexbox

Understand every Flexbox property with unique examples, visual guides and a final responsive layout.
Created byJoshan Grewal
Last updated 4/2026
English

What you'll learn

  • Understand the core concepts behind CSS Flexbox
  • Apply Flexbox properties to parent containers and child items
  • Use flex-direction, justify-content, align-items, and more
  • Control layout behavior with flex-grow, flex-shrink, and flex-basis
  • Learn the math behind how Flexbox distributes space
  • Understand how Flexbox simplifies responsive design
  • Use shorthand properties to write clean, efficient CSS

Course content

16 sections35 lectures2h 4m total length
  • Introduction To Flexbox3:31
  • Overview Of Flexbox1:15
  • Additional Notes0:47

Requirements

  • Basic understanding of HTML and CSS.
  • A web browser is required. We will use Google Chrome and will occasionally make use of the Chrome Dev Tools.
  • A coding editor is required. We will use VS Code with the Live Server plugin.

Description

This course is created and taught by the instructor. In this updated version, AI tools were used in a limited capacity to help refine introduction lecture articles. All explanations, concepts and teaching are original and based on the instructor’s own understanding and experience.

This course is designed to help you elevate your HTML webpage layouts using the power of CSS Flexbox, a layout model that gives you precise control over alignment, spacing, and responsiveness.

You’ll learn how each Flexbox property works through clear demonstrations, covering both parent container properties and child item properties.

Properties applied to the parent flex container:

  • flex-direction – Set the direction items are laid out (row or column)

  • flex-wrap – Control whether items wrap or stay on a single line

  • flex-flow – Combine flex-direction and flex-wrap with a shorthand

  • justify-content – Align items along the main axis (e.g., left, center, space-around)

  • align-items – Align items along the cross axis

  • align-content – Control spacing between multiple lines of items

Properties applied to individual flex items:

  • flex-basis – Define an item’s initial size before space is distributed

  • flex-grow – Distribute remaining space between flex items

  • flex-shrink – Control how items shrink when space is limited

  • flex – A shorthand for setting flex-grow, flex-shrink, and flex-basis

  • order – Change the visual order of items

  • align-self – Override alignment for a specific item

To build a deeper understanding, you’ll also see Flexbox in action across a range of scenarios, helping you clearly connect each property to its real-world effect.

By the end of this course, you’ll not only understand how to use Flexbox, you'll also know why it behaves the way it does, giving you greater confidence and control when building flexible layouts.

Who this course is for:

  • Complete Beginners To CSS Flexbox
  • Developers who wish to gain a deeper insight into many of the concepts addressed when working with the Flexbox layout model.
  • Developers who wish to use Flexbox as their layout model for building responsive web pages.