Beyond grid-x, Foundation exposes flex utilities for one-off rows: flex-container, flex-dir-column, align-middle, align-self-bottom, and child helpers like flex-child-grow.
Grid-x vs flex-container
- Use
grid-x+cellfor page-level responsive columns with twelfths sizing - Use
flex-containerfor toolbars, media objects, or inline groups inside a cell - Combine with
align-middleand margin helpers for vertical rhythm
Same mental model as Bootstrap flex utilities and raw CSS flexbox—Foundation names match marketing-site markup in older Zurb projects.
Important interview questions and answers
- Q: flex-container or grid-x for a navbar row?
A: Oftengrid-x align-middleinsidetop-bar; standaloneflex-containerfor simple toolbars not tied to the 12-column cell model. - Q: flex-child-grow?
A: Lets one flex child consume remaining space—similar tocell autoin the XY grid.
Self-check
- Which helper stacks flex children vertically?
- When is
cell shrinkpreferable to flex-child-shrink?