How to Build a Responsive Image Mosaic Layout Using Divi 5’s CSS Grid Editor

Published: October 21, 2026 Author: Brijesh Sathwara

Images can make a website more engaging, but displaying them in a basic grid does not always create the visual impact you want. A more creative arrangement of large and small images can help highlight important visuals, improve page composition, and give your website a modern appearance.

With Divi 5’s CSS Grid Editor, you can build a custom image layout by controlling the placement, size, and spacing of individual grid items directly inside the Visual Builder. You can create asymmetrical arrangements without writing complicated CSS and adjust the layout for desktop, tablet, and mobile screens.

In this tutorial, you’ll learn how to build a responsive image mosaic layout using Divi 5’s built-in grid controls, customize individual image positions, and refine the design for different screen sizes.

What Is an Image Mosaic Layout?

An image mosaic layout displays multiple images in a structured arrangement of different sizes. Instead of giving every image the same amount of space, you can make selected images span multiple rows or columns to create a more dynamic composition.

For example, you might use one large image as the main visual, place two smaller images beside it, and arrange additional images underneath. This approach works well for photography websites, travel blogs, portfolios, product showcases, and business landing pages.

Divi 5’s CSS Grid Editor makes this type of layout easier to create because you can visually control grid tracks, spacing, and item placement without manually writing grid-related CSS properties.

Why Use Divi 5’s CSS Grid Editor?

Divi 5 provides visual controls for building flexible grid structures directly within the page builder. Instead of relying on multiple nested rows and columns, you can organize images inside a single grid container.

Here are some advantages of using the Grid Editor:

  • Custom image placement: Position images across different rows and columns to create unique compositions.
  • Flexible sizing: Make selected images larger by allowing them to span multiple grid cells.
  • Consistent spacing: Adjust horizontal and vertical gaps throughout the layout.
  • Responsive controls: Configure the grid to suit desktop, tablet, and mobile screens.
  • Visual editing: Resize grid tracks and reposition items through the Grid Editor interface.

These controls help you create more distinctive layouts while keeping the structure manageable.

Step 1: Create a New Section in Divi 5

Start by opening the page where you want to display the image layout.

  1. Open the page in the Divi 5 Visual Builder.
  2. Add a new Section to the page.
  3. Insert a Row or another suitable container for your images.
  4. Add the image elements you want to display in the layout.
  5. Upload your images or select existing images from the WordPress Media Library.

Create a New Section in Divi 5

Choose images that complement one another in terms of color, subject, and visual style. Using a combination of landscape and portrait images can make the final arrangement more interesting.

Before moving forward, ensure that all the images you want to include are available inside the container.

Step 2: Enable Grid Layout

After adding your image elements, configure their parent container to use CSS Grid.

  1. Open the settings for the container holding your images.
  2. Navigate to the Design
  3. Expand the Layout
  4. Find the Layout Style
  5. Select Grid.

Enable Grid Layout

Once Grid is enabled, Divi exposes the grid-related controls for that container. You can define the column structure, adjust gaps, and configure how the child elements occupy the available space.

The Grid Editor is available for elements using Grid layout, including supported sections, rows, columns, and groups.

Step 3: Open the CSS Grid Editor

With Grid selected, locate the option to open the Grid Editor within the grid settings.

Click the Open Grid Editor button to access the visual grid interface.

The editor provides a visual representation of the grid structure, allowing you to work with rows, columns, gaps, and item placement.

You can use this interface to:

  • Resize columns by dragging the grid boundaries.
  • Adjust row heights to create different image proportions.
  • Change the spacing between grid items.
  • Move items into different grid positions.
  • Resize individual items to span multiple rows or columns.

Open the CSS Grid Editor

Begin with a simple structure and gradually adjust it until the layout matches your intended design.

Step 4: Arrange Images in an Asymmetrical Grid

Now comes the main part of the design: creating a layout where images have different sizes.

For this example, imagine a gallery containing six images. Rather than displaying all six images in equal-sized cells, you can create a composition with one prominent image and several supporting images.

Arrange Images in an Asymmetrical Grid

Try the following arrangement:

  1. Create a grid with three columns.
  2. Place the first image in the main area of the layout.
  3. Resize the first image so that it spans two columns and two rows.
  4. Arrange two smaller images in the remaining upper grid cells.
  5. Position the other images in the available cells beneath them.
  6. Adjust the row and column boundaries until the proportions look balanced.

Use the Grid Editor’s drag-and-drop controls to reposition and resize the grid items. Depending on the structure, you may need to adjust the placement of other items to prevent unwanted empty spaces.

The goal is to establish a clear visual hierarchy. One image should attract attention, while the surrounding images support the overall composition.

Keep the arrangement purposeful rather than making every image a different size without considering the overall balance.

Step 5: Adjust Grid Gaps and Image Sizing

Once the images are positioned, refine the spacing and proportions.

Open the grid settings and adjust the horizontal and vertical gaps. Start with a small, consistent gap between images, then increase or decrease it according to your design.

Next, review the sizing settings for the individual image elements.

Consider these adjustments:

  • Image width: Ensure images fill the space allocated to their grid cells.
  • Image height: Maintain suitable proportions for larger and smaller images.
  • Object fit: Use an appropriate image-fitting option when you want images to fill their containers without distortion.
  • Border radius: Apply subtle rounded corners if they suit your website’s design.
  • Spacing: Keep the gaps consistent unless you intentionally want a different visual effect.

For a polished gallery, avoid stretching images disproportionately. If the design requires images to fill differently sized areas, use appropriate cropping rather than distorting their original proportions.

Step 6: Make the Image Layout Responsive

A layout that looks attractive on a desktop screen may become crowded on a tablet or mobile device. Responsive adjustments help maintain a clear composition as the available screen width changes.

Divi 5 provides responsive controls that let you configure supported grid settings for different breakpoints.

Desktop Layout

On desktop, use the full grid structure to create the intended visual hierarchy.

A three- or four-column layout can provide enough room for a prominent image alongside several smaller images. Review the overall proportions and ensure that the composition does not feel too crowded.

Tablet Layout

On tablet, reduce the number of columns or simplify the arrangement if the images begin to feel compressed.

You may also need to modify individual item spans so that larger images do not consume too much of the available width.

Mobile Layout

On mobile, prioritize readability and easy scrolling.

Consider switching to a single-column layout or a simpler two-column arrangement. Reduce oversized spans where necessary, and make sure every image remains visible in a logical order.

To make these adjustments:

  1. Open the settings for the grid container.
  2. Locate the responsive controls for the relevant grid properties.
  3. Set suitable column counts and spacing for tablet and phone breakpoints.
  4. Adjust item placement or spans where supported and necessary.
  5. Preview the layout at each breakpoint.
  6. Save the changes after checking the results.

The best responsive arrangement depends on the images and the purpose of the page. A portfolio may benefit from preserving a few larger images, while a product gallery may work better with a more uniform layout.

Step 7: Refine the Design and Improve Accessibility

After completing the grid structure, focus on the details that improve the gallery’s appearance and usability.

Use images with suitable dimensions and optimized file sizes to help prevent unnecessary page loading delays. Add meaningful alternative text to informative images, and use empty alternative text for purely decorative images when appropriate.

If your gallery includes clickable images, ensure that visitors can identify which images are interactive. Use clear links or appropriate interactive elements rather than making the entire layout difficult to navigate.

You can also enhance the presentation with captions, subtle hover effects, or links to individual portfolio projects. Keep these additions consistent with the overall website design.

Before publishing, check that the images remain sharp, the spacing is balanced, and the gallery does not introduce horizontal scrolling on smaller screens.

Common Mistakes to Avoid

When creating a responsive image layout, watch out for the following issues:

Using too many different image sizes: Excessive variation can make the layout look unbalanced. Establish a clear hierarchy and repeat some proportions where appropriate.

Ignoring mobile breakpoints: Desktop grid settings may not translate well to smaller screens. Review and adjust the layout at each breakpoint.

Leaving unintended empty cells: Complex item placement can create gaps in the grid. Reposition items or adjust the structure to achieve the intended result.

Stretching images: Avoid forcing images into unsuitable dimensions. Use appropriate image-fitting and cropping settings.

Overlooking image optimization: Large image files can affect page performance. Compress images and choose dimensions appropriate for their display size.

Forgetting accessibility: Provide suitable alternative text and ensure that interactive images have clear, usable links.

Conclusion

Building a responsive image mosaic layout in Divi 5 is a practical way to create a visually engaging gallery without relying on complicated custom CSS. The CSS Grid Editor lets you organize images, control their proportions, adjust spacing, and create asymmetrical compositions through a visual interface.

By combining thoughtful image selection with careful grid placement and responsive adjustments, you can create an image layout that looks balanced across desktop, tablet, and mobile devices.

Whether you are designing a photography portfolio, a travel gallery, or a product showcase, Divi 5’s Grid Editor gives you the flexibility to create a layout that fits your content and design goals.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Limited Time Offer

X

Try a Free 2-Hour Test Task

Experience our quality, speed, and communication on any small WordPress task before you commit. No contract. No cost. No obligation.
[For New Agency Partners]

"*" indicates required fields

This field is for validation purposes and should be left unchanged.
Name*
0
Would love your thoughts, please comment.x
()
x