Foundation 6 - Flexbox Grid

Examples using the new flex-box based grid system


These examples showcase how you can use Foundation 6 to create easily customisazble layouts using the optional Flexbox Grid

Note:This example uses the stylesheet taken directly off the Foundation 6 example page as of the current date of this example there isn't a direct CSS link to the optional Flex Grid layout


Flex Horizontal Alignment

Shows how you can use the alignment classes to easily position your content both horizontally and vertically

Align right

Right align the elements

Element One
Element Two
Element Three
Align center

Center align the elements

Element One
Element Two
Element Three
Align Spaced

Space out the elements, with even spacing around the elements

Element One
Element Two
Element Three

Click to view the docs about horizontal alignment


Flex Verticalntal Alignment

Shows how you can use the vertical alignment classes to position your content vertically. By default flex items sit at the top of their parent, but you can manually set this on an element by element basis

Align Top

Default, aligns the items to the top of the parent

Element One

Here is some additional content making me taller

Element Two
Element Three

I also have some additional content, I'm stuck to the top!

Align Middle

Aligns the items to the middle of the parent

Element One

Here is some additional content making me taller

Element Two
Element Three

I also have some additional content

Align Bottom

Aligns the items to the bottom of the parent

Element One
Element Two

We are stuck to the bottom of the container

Element Three

I also have some additional content, I'm stuck to the top!

Adding the alignment classes to the parent row will make all of the items inside of it align to the chosen vertical position. You can also specify on individual elements themselves where you want them to align by specifying either align-top, align-middle or align-bottom

Find out more about vertical alignment on the docs

Flex ordering

Shows how you can use flexbox grid to re-order elements depending on your screen profile

Resize your device to see this in action



Find out more about the flex-box ordering options on the docs