Align box overview

Align flex and grid children with the align box as a visual guide.

We’re transitioning to a new UI, and are in the process of updating our Webflow University content.

The align box is a 3 x 3 grid that appears in Style panel > Layout when display is set to flex or grid. You can use the align box as a visual representation of the flex parent or grid to quickly align flex and grid children inside their parent elements.

To get started, click the align box cell to which you want to align your content, or click anywhere in the align box to give it focus and use the directional arrow keys on your keyboard to navigate across its cells. You can double-click align box cells and/or use shortcuts to quickly align flex and grid children.

As you interact with the align box, the canvas reflects your changes and the X and Y axis dropdowns update to reflect the current alignment settings.

Shortcuts

Flex

  • Set justification (i.e., justify-content) to space between: double-click an align box cell or Command (on Mac) or Control (on Windows) + click an align box cell
  • Set alignment (i.e., align-items) to stretch: Option (on Mac) or Alt (on Windows) + click an align box cell

Learn more about aligning flex children.

Grid

  • Set justification (i.e., justify-items) to stretch: double-click an align box cell or Command (on Mac) or Control (on Windows) + click an align box cell
  • Set alignment (i.e., align-items) to stretch: Option (on Mac) or Alt (on Windows) + click an align box cell

Learn more about aligning grid children.

Note: Some alignment options aren’t available through the align box alone, but you can access these in the X and Y axis dropdowns.

Table of contents

Continue learning

Hmm…we couldn’t find any results for “search query”. Try a different search term or check out our community forum.

Search the forumReset the filter
Load more

Filter

Reset
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Topics
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Back to top