Wix Editor: Changing Your Gallery's Layout

5 min read
Adjust your gallery's layout to suit your site's alignment. Use options such as the width, spacing, and height to structure and display your images the way you want.
In this article, learn how to:
The available layout options depend on the gallery you choose.

Choosing the number of rows and columns

Decide how many rows and columns you need for your gallery's content. For example, if your gallery contains 9 images, you can set 3 rows and 3 columns to ensure they're displayed evenly.
After choosing the number of rows and columns, you can make the spacing between images bigger or smaller.

To change the number of columns and rows:

  1. Click the gallery in the Editor.
  2. Click the Layout icon .
  3. Customize the layout:
    • Columns: Drag the slider to set the number of columns.
    • Rows: Drag the slider to set the number of rows.
    • Spacing: Drag the slider to set the spacing between the columns / rows.
Screenshot of the Layout panel for a grid gallery. The column, row, and spacing sliders are highlighted.
Some galleries only contain the Columns option.

Depending on your needs, there are two ways to change the size of your gallery: using the stretch handles to make it bigger or smaller, or stretching it to full width. 
  1. Click the relevant gallery in your Editor.
  2. Click and drag the handles on the gallery's edges to resize it. 
If you're unable to resize your gallery using the stretch handles, it's probably already set to full width. You can disable this option if needed.
A GIF showing a grid gallery being stretched and resized with the stretch handles.
  1. Click the gallery in the Editor.
  2. Click the Stretch icon .
  3. Click the Stretch to full width toggle: 
    • Enabled: The element is stretched to the full width to fit your screen.
    • Disabled: The element is not stretched to fit your screen.
  4. (Optional) Drag the Margins slider to increase or decrease the space on either side of the gallery.
A screenshot of the Stretch Gallery panel over a gallery in the Editor. The 'Stretch to full width' toggle has been enabled.
The margin limit for full-width galleries is 80 pixels.

Certain galleries display image titles and / or descriptions to give your visitors extra information or context. You can set the text's position by choosing an alignment from the Layout panel.

To align text in your gallery:

  1. Click the relevant gallery in your Editor.
  2. Click the Layout icon .
  3. Choose an option under Text alignment or How's text aligned?:
    • Left: Text is aligned to the left of the image.
    • Center: Text is aligned to the middle of the image.
    • Right: Text is aligned to the right of the image.
A screenshot of the layout panel of a masonry gallery. The cursor is hovering over the option to align the text to the centre

If you have both landscape and portrait mode images in your gallery, you can set the image scaling to fit. Fit scaling prevents the images from being automatically cropped, so you can display all of your images in their correct orientation.
Before you begin:
Make sure you save and upload the images in the orientation that you want to use (landscape or portrait).

To set image scaling:

  1. Click the gallery.
  2. Click the Settings icon .
  3. Choose an option under When they're resized
    • Autocrop: Images are cropped to fit the space, and have the same orientation.
    • Fit: Images are fit into the image space and displayed in their original orientation.
A screenshot of the grid gallery settings panel. The cursor is hovering over the option to set the images to 'Fit'.

Adjust the structure of a Freestyle gallery by setting its display and rotation. You can also randomize the layout for a fresh new look.
This option is only available for Freestyle galleries.

To change the layout of a Freestyle gallery:

  1. Click the gallery in the Editor.
  2. Click the Layout icon .
  3. Select a layout option under How are images displayed?:
    • Scattered: Images are scattered randomly in the gallery.
    • Stacked: Images are stacked on top of each other.
  4. Click the toggle next to Rotated to enable or disable image rotation:
    • Enabled: Images are placed at an angle (partially rotated).
    • Disabled: Images are placed horizontally.
  5. (Optional) Click the Randomize Layout button to randomly select a different layout for your gallery images.
A screenshot of the freestyle layout panel. The cursor is hovering over the 'Rotated' toggle.

Did this help?