interactive

Flexbox Generator

Layout with CSS Flexbox is powerful but complicated. So we made this:
a quick flexbox playground for testing your css with flex layout tricks.

Get Start
Main Direction / flex-direction
direction of content flow

Row
Column
Reverse
Wrapping / flex-wrap
controls how wrapping works

Wrap
Nowrap
Wrap Reverse
Main Align / justify-content
align along the content flow ( main direction )

Start
End
Center
Space Between
Space Around
Cross Align / align-items
vertical align within a line ( cross direction )

Auto
Start
End
Center
Baseline
Stretch
Multi Align / align-content
vertical align within container

Start
End
Center
Space Between
Space Around
Stretch
Flex Grow / flex-grow
controls the proportion of size growing

0
1
Flex Shrink / flex-shrink
controls the proportion of size shrinking

0
1
Item Margin / margin
margin around items

Image
Block
Text
Width
Height
On
Off
Get CSS
Preview
Copy
Copied
close

About This Tool

Flexbox Generator

a quick flexbox playground for testing your css with flex layout tricks.

Flexbox is quite useful nowadays but sometimes it's quite frustrating to test all attributes again and again everytime. Why not just having a nice, easy interface to bootstrap all these things up? Thus now we are here - a flexbox playground for on-demand CSS generation. We now use this every time when we need to build a flexible layout, and we also suggest you to bookmark this in your web design toolbox too.

Browser Compatibility

Good news: every modern browser supports flexible box layout (flexbox) now. Yet unfortunately IE <= 9 don't support flexbox, and IE10/11's support are buggy. Check out Can I Use..? for more detail about browser compatibility.

tl;dr - You'll need a graceful degradation for IE <= 11.

Attribute Coverage

order, which controls the order of flex items, doesn't cover here since it will need to config with a by-each-item basis. flex-grow, flex-shrink and flex-basis are similar yet we still provide the ability to config them with a single, identical value for every single item.

align-self isn't covered too, which is used to overwrite align-items in specific item.

tl;dr - We don't provide testing for attributes that works over single item basis.

What is the :after placeholder?

You can add a :after pseudo element in container with the placeholder button. It has the effect as flex: 999 999 auto which consumes all space in the last line of your content.

More Stuffs

We also provides micro animation solutions with thousands of icons in loading.io for you to enrich your website and projects, don't forget to check it out!

make your own animation with loadingio's icon library

Comments

Any questions or suggestion? Feel free to leave comment here. :)

Load Comments



By continuing to browse, you agree to our use of cookies.
For more details please check our privacy policy.

loading.io loader

Loading.io is brought to you by:
PlotDB Ltd. brand logo / 見聞科技有限公司 VAT No. 52518929

Service for making ajax loaders / loading gifs / preloaders and animated icons, live background, animated text in GIF / SVG / APNG / CSS.

Customer Service: [email protected]
LOADING.IO