DEV Community

Cover image for Flexbox For Dummies: Everything You Need To Master Any CSS Layout
Nick Adams
Nick Adams

Posted on

1

Flexbox For Dummies: Everything You Need To Master Any CSS Layout

A quick run through just a couple examples and we can break down the most important flex properties with clear examples to help you level up your web development skills.

Here I'll cover the most important properties and their shorthands, and the most common layouts.

Learn these and you'll be able to easily nest them together and build just about any layout you want.

I cover: the axis and how it works with direction, alignment, gap, order, wrapping, flex basis, grow, and shrink.

These properties are covered:

  • display: flex
  • flex
  • flex-wrap
  • gap
  • flex-basis
  • flex-grow
  • flex-shrink
  • order
  • flex-direction
  • flex-flow
  • justify-content
  • align-items
  • align-content

Check out our video and comment if you have any questions!

Want a specific webdev tutorial? Comment on the video and
subscribe to our channel. We'd love to make valuable content, so feedback and suggestions are extremely appreciated!

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video