LogoLogo
Back to PageFly.ioVideo Tutorials
English 🇺🇸
English 🇺🇸
  • PageFly Help Center
  • Getting Started
    • Overview
    • Quick start
      • How to Install PageFly
      • How To Use PageFly | Get started in 5 mins
      • How to Create a New Page from PageFly Templates
      • How can I access the PageFly LiveChat?
      • How PageFly work with your Shopify theme?
    • Pricing and billing
      • PageFly pricing plan
      • How PageFly billing work?
      • What happens if I uninstall PageFly?
      • PageFly refund policy
  • Pages & Sections Creation
    • Overview
    • General
      • Setting up PageFly Pages
      • What type of pages that PageFly support?
      • How to use PageFly pages and sections?
      • How to export and import PageFly pages and sections
    • Pages
      • How to create a Homepage with PageFly?
      • How to create a Product page with PageFly
      • How to create a Collection page with PageFly
      • How to create a Blog post page with PageFly
      • How to create a Password page with PageFly
      • How to create a FAQs page with PageFly?
      • How to create a Coming soon page with PageFly
      • How to create an About us page with PageFly
      • How to create a Contact Us page with PageFly
      • How to create a Landing Page with PageFly?
      • How to create A/B testing page with PageFly
    • Sections
      • How to use premade section and saved section to build page?
      • How to create a basic section with image and text
      • How to use parallax effect in a PageFly section?
      • How to create a full-width section in PageFly
      • How to make a sticky section without code in PageFly
  • Page Structure & Elements
    • Overview
    • Editor
      • User interface
        • How to work with PageFly editor?
        • How to work with PageFly on mobile?
        • Page Editor – Element Inspector
        • Page Editor - General Tab
        • Page Editor - Styling Tab
        • How to use Page outline to organize page layout?
        • How to make impressive mobile responsive page?
        • How to use autosave and version history ?
      • Extra Functions
        • How to manage custom option swatches for product variants?
        • How to use Global Styles to customize styles to use for all PageFly pages
        • How to use trash to manage deleted pages, sections, and media files?
        • How to Add Custom Font in PageFly
        • How to manage image and video in PageFly?
    • PageFly Elements
      • Universal Elements
      • Containers
        • Layout
        • Slideshow
        • Tabs
        • Accordion
        • Content List
      • Basic
        • Heading
        • Paragraph
        • Button
        • List
        • Icon
        • Divider
        • HTML/Liquid
      • Media
        • Image
        • Youtube video
        • Vimeo video
        • HTML video
        • Soundcloud
      • Social
        • Instagram feed
        • Facebook like & share
        • Facebook feed
        • Twitter feed
      • Advanced
        • QR code
        • Table
        • Countdown
        • Google map
        • Progress
        • Mailchimp form
    • Shopify elements
      • Custom Content
        • App blocks
      • Product
        • Product Variant Metafield
        • Product list
        • Product details
        • Product media
        • Product title
        • Product vendor
        • Product price
        • Product description
        • Product variant
        • Product quantity
        • Product Add to cart
        • Product view details
        • Product Metafield
        • Dynamic checkout button
      • Collection
        • Collection title
        • Collection image
        • Collection list
        • Collection view details
        • Collection details
        • Collection description
      • Form
        • Customer form
        • Customer form field
        • Customer form button
        • Contact form
        • Contact form field
        • Contact form button
        • Search form
      • Blog posts
        • Blog post list
        • Blog post details
        • Blog post image
        • Blog post title
        • Blog post content
        • Blog post meta
    • Optimization
      • How to use custom code editor to customize your page?
      • Page Analytics
      • How to speed up your Shopify store?
      • How to set up Facebook Pixel to understand the actions people take on website?
      • How to publish PageFly page to Shopify menu navigation?
      • How to use the Zakeke Product Customizer on PageFly pages?
      • How to use Langify to translate my page?
      • How to use Weglot to translate my pages?
      • How to use T Lab to translate PageFly’s page?
      • JSON Template with PageFly
      • How to Optimize Images with TinyIMG in the PageFly editor?
      • How to use Shoplift A/B Testing with PageFly?
      • How to use SEOAnt:AI SEO & Image Optimizer with PageFly?
      • Black Friday Sale Ideas
      • Optimize Pages for CRO with PageFly Elements
      • Optimize Sale On Valentines Day
      • How to set up Christmas Sale Page with PageFly | Best Guide in 2023
      • How to create a Flash sale section - Back to School
      • Optimize Your Store for Mother's Day: Create a Gift Guide with PageFly
    • Main Use Case
      • Align Elements on a Page
      • Direct to Links, Sections, Pop-ups
      • Edit Spacing, Margin and Padding
      • Flex Feature
      • Upload Files to Page
  • Integrations
    • Third-party Elements
      • How to activate integrated third party Shopify apps to use on your pages
      • What apps does PageFly integrate with?
      • Review & Rating
      • Upsell & Cross-sell
      • Badge & Seal
      • Appointment Booking
      • Delivery & Pickup
      • Subscriptions
      • Order Tracking
      • Upload Fields
      • Email Marketing
      • Product Information
      • Push Notifications
      • Referral & Affiliate Marketing
      • Image & Media
      • Loyalty & Rewards
      • Sustainability
      • Gifts
      • Internationalization
      • Advertising
      • Support
      • SMS Marketing
  • FAQ & Troubleshooting
    • Overview
    • FAQs
      • Issues with Shopify themes when using PageFly
      • How we comply with GDPR
      • The URL address of my page
      • PageFly Page editor - FAQs
      • Elements - FAQs
    • Troubleshooting
      • Live site issue
        • Cart Drawer does not Automatically Update
        • Responsive mobile horizontal scroll issue
        • YouTube, HTML Videos do not autoplay issue
        • Page not fully displayed in theme preview mode
        • Can't create locales file
        • Can't create theme.pagefly.liquid
        • How to hide Shopify's Default Product Details
        • PageFly Page List Won't Stop Loading
        • Remove the blank space on top of the page
        • Blog page not updated successfully
        • The page's style is broken
      • Error messages
        • PageFly Page List Won't Stop Loading
        • Page Size Limit
        • Limit elements on a page
        • Unable to import your data
        • Limit image size
        • Unknown error
  • Latest Update
    • PageFly is now compatible with Online Store 2.0
    • PageFly Referral Program
    • PageFly old pricing plan
  • PageFly Affiliate Program
    • Affiliate Success: Understanding what PageFly can do for Merchants
    • Affiliate Success: Dos & Don'ts - Everything to Know about Becoming a Successful PageFly Affiliate
    • Affiliate Success: Frequently Asked Questions
Powered by GitBook
LogoLogo

Product

  • Templates
  • Pricing
  • Happy Customer

Resource

  • Blog
  • Academy
  • Video Tutorials
  • Community
  • Feedback

Partners

  • Our Partners
  • Affiliate Program

Company

  • About Us
  • Careers
  • Privacy Policy
  • Terms of Service

Copyright © 2025 PageFly. All rights reserved.

On this page
  • About Flex Feature
  • Legacy Layout - How To Access Flex Feature
  • How To Configure For Flex Feature
  • Gen 2 Layout - How To Access Flex Feature
  • Common Cases
  • Tips And Best Practices
  • Frequently Asked Questions
  • Additional Resources

Was this helpful?

Edit on GitHub
  1. Page Structure & Elements
  2. Main Use Case

Flex Feature

Last updated 8 hours ago

Was this helpful?

About Flex Feature

In this manual, we will explore the and its application in various scenarios. Flex, often known as flexbox, is a layout model designed to distribute space between elements within a container efficiently.

In the PageFly editor, you can use Flex to organize or align elements inside columns, rows, and sections.

You can check more details in the video tutorial below.

Legacy Layout - How To Access Flex Feature

To enable the Flex feature of a container, for example we will use Flex on the column containing the product information:

  • Step 1: Click on the Column (container)

  • Step 2: Switch to Styling tab

  • Step 3: Select Flex for Display type

How To Configure For Flex Feature

This feature can be complex to utilize, so it is recommended for advanced users only. When you enable Flex, we will have some options below:

  • Direction

  • Wrap

  • Align Items

  • Align Content

  • Justify Content

Now we will go through each setting and how they work

Flex Direction

Flex Direction allows you to arrange elements within a container either in horizontal rows or vertical columns. All of the options are listed here.

Option

Description

Row (default)

All elements are displayed horizontally, as a row, left to right

Row reverse

Same as Row but in reverse order (right to left)

Column

All elements are displayed vertically, as a column, top to bottom

Column reverse

Same as Column but bottom to top

You can see the difference between the options here

Flex Wrap

If you select Flex, by default, flex items will all try to fit onto one line. You can change that and allow the items to wrap as needed. These are all of the available options

Option

Description

No Wrap (default)

All elements will be on one line

Flex wrap

Flex elements will wrap onto multiple lines, from top to bottom. Please note that elements only wrap when there is no space to stay on the same line

Wrap reverse

Flex elements will wrap onto multiple lines from bottom to top

You can see the difference between the options here

Align Items

This option determines how the elements are arranged along the container's axis. Here are all the options.

Option

Description

Center

All elements are positioned at the center of the container vertically

Flex start

All elements are positioned at the beginning of the container vertically

Flex end

All elements are positioned at the end of the container vertically

Stretch (default)

All elements are stretched to fit the container

Baseline

All elements are positioned at the baseline of the container

You can see the difference between the options here

Align Content

Align Content allows you to align a flex container’s lines when there is extra space within the container’s height.

Please note that this option only affects multi-line containers where Flex Wrap is set to either wrap or wrap-reverse.

All of the options are listed here.

Option

Description

Center

All elements are packed toward the center of the flex container

Flex start

All elements are packed toward the start of the flex container

Flex end

All elements are packed toward the end of the flex container

Stretch (default)

All elements stretch to take up the remaining space

Space around

All elements are evenly distributed in the flex container, with half-size spaces on either end

Space between

All elements are evenly distributed in the flex container

You can see the difference between the options here

Justify Content

This option allows defining the alignment along the horizontal axis of the container. It modifies the white space that appears between lines of text. These are all of the available options

Option

Description

Center

All elements are positioned in the center of the container horizontally

Flex start

All elements are positioned at the beginning of the container horizontally

Flex end

All elements are positioned at the end of the container are horizontally

Stretch (default)

All elements are stretched to take up the remaining space

Space around

All elements will have equal space before, between, and after them

Space between

All elements are evenly distributed; the first element is at the beginning and the last element at the end of the container

You can see the difference between the options here

Gen 2 Layout - How To Access Flex Feature

Common Cases

Placing Two Elements on the Same Row

In some common cases, you might want to place 2 elements on the same row, Flex feature can help you achieve this. For example, we will put the product price element and the save badge on the same row

  • Step 1: Create a Block > Put the product price and the save badge inside it

  • Step 2: Click on Block > In Styling tab enable Flex feature

  • Step 3: Set Flex Direction to Row

  • Step 4: To center the pieces vertically, select Center from the Align Items parameter. Next, select flex-start under Justify Content to align the items at the start of the block horizontally

Aligning the elements in the center of Column

You can use the Flex feature to center your elements in a Column or a Block, such as a heading and a paragraph element in the right column. Simply follow these instructions to achieve this

  • Step 1: Go to the breadcrumbs and select the Column

  • Step 2: Choose Styling tab > Display > Select Flex and set Flex Direction: Column

  • Step 3: Select Center for Align items and Justify content

Tips And Best Practices

  • Before applying Flex styles, determine the desired layout for your content (e.g., columns for product listings, rows for team introductions). This helps you choose the appropriate Flex options.

  • Begin with basic Flex layouts (like single-direction rows or columns) and gradually add complexity as needed. Complex layouts can be challenging to manage visually.

  • Consider how your Flex layouts will adapt to different screen sizes (desktop, mobile).

Frequently Asked Questions

1. What is the flex Feature?

The flex feature calculates the extent of the part using a bounding box.

2. What are the benefits of Flex features?

It helps sellers to arrange elements better.

3. What's the difference between the Flex features in the Legacy and Gen 2 layouts?

Flex Layout

The Gen 2 editor, by contrast, is built around a fully flexible container system that eliminates the need for rows and columns. In Gen 2, you can use nested flex containers, giving you much more freedom in how elements are positioned and aligned. This allows for truly custom layouts where elements don’t have to be confined to specific grid units. The Gen 2 Flex Layout introduces advanced flex controls for:

  • Complete control over alignment and positioning of elements on different screen sizes.

  • No row/column restrictions, so users can place items more freely.

  • Enhanced control over flex-direction, wrapping, and ordering, allowing for dynamic layouts that adapt smoothly to different devices.

Legacy Layout

In the Legacy layout, the Flex feature is available, but it is more limited in scope. You primarily work within a grid-based system where rows and columns are predefined. While you can align and justify elements (e.g., center, stretch), you still need to rely on rows and columns to structure your page. The legacy editor allows basic Flexbox controls, like setting direction (row or column) and adjusting spacing (using the Justify Content and Align Items properties), but it’s restricted to a more rigid structure.

Additional Resources

Important Note: Gen 2 Layout will be available exclusively for Pay-as-you-go pricing model ().

With the PageFly 4.16 version, we have released an advanced editor using the CSS Flexbox layout model with flex sections and flex blocks. For a more thorough tutorial, you can read the article or watch video.

These are all of the Flex setting's features. If you have further questions, please message us on our Live Chat support.

slot plans
Page Editor – Styling Tab
How To Use PageFly Gen 2 Editor with Flex Section
PageFly Element Styling | Ultimate Guide to Edit Effectively
How to Use PageFly Custom Code Editor?
7 Steps to Create a Homepage with PageFly
Flex Feature