DEV Community

Cover image for #CSS. Note for flexbox properties.
Ha Tuan Em
Ha Tuan Em

Posted on

14 5

#CSS. Note for flexbox properties.

All CSS Flexbox properties

This is a list of all the CSS flexbox properties that can be used to position elements in CSS. And I hope it will useful for you.

Properties can be applied to the container

.container {
   display: flexbox | inline-flex;
   flex-direction: row | row-reverse | column | column-reverse;
   flex-wrap: nowrap | wrap | wrap-reverse;
   flex-flow: <‘flex-direction’> || <‘flex-wrap’>
   justify-content: flex-start | flex-end | center | space-between | space-around;
   align-items: flex-start | flex-end | center | baseline | stretch;
   align-content: flex-start | flex-end | center | space-between | space-around | stretch;
}
Enter fullscreen mode Exit fullscreen mode

Properties can be applied to items/elements in the container :

.items {
   order: <integer>;
   flex-grow: <number>; /* default 0 */
   flex-shrink: <number>; /* default 1 */
   flex-basis: <length> | auto; /* default auto */
   flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
   align-self: auto | flex-start | flex-end | center | baseline | stretch;
}
Enter fullscreen mode Exit fullscreen mode

You can practice flexbox css in this website flexboxdefense. If you see this cool so you can donate if you want !

And thanks for reading !

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (2)

Collapse
 
mikehu profile image
MikeHu

Nice Article

Collapse
 
hte305 profile image
Ha Tuan Em

Thanks ! Hope it's useful for you !

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay