An image mosaic combines pictures of quite a lot of sizes in one hooked up grid. Better tiles highlight made up our minds on photos, while smaller tiles fill the spaces spherical them.
With Divi 5’s CSS Grid Editor, you’ll assemble this affiliation visually, resizing and positioning tiles without delay on the grid canvas.
In this instructional, we’ll assemble a twelve-image mosaic during 4 columns, create 4 higher serve as tiles, and coordinate the image styling with a preset. Then we’ll adapt the construction for tablet and phone.
Why Image Mosaics Need Responsive Adjustments
A mosaic gets its shape from spans. A tile can stretch during two columns, two rows, or every, creating an affiliation of larger and smaller photos.
Those spans need attention when the show narrows. A tile spanning two columns cannot are compatible within a single-column grid without an adjustment. An inherited starting position can also place an products outdoor the intended columns. The ones settings can create additional grid tracks, gaps, or horizontal overflow.
The aim is to review the placement rules at each and every breakpoint, holding the spans that still are compatible and adjusting those that don’t.
Where The Grid Editor Comes In At hand
The CSS Grid Editor shows the grid’s tracks, gaps, and products placement together. Drag a corner to resize a tile or switch an products to a few different position. Divi information the ones changes as Grid Offset Rules on the container, which is the Row in this example.
Use the instrument icons at the peak of the builder to modify between Desktop, Tablet, and Phone. At each and every breakpoint, review the inherited construction and add the column, hollow, and web page adjustments it needs.
What The Mosaic Seems to be like Like At Each and every Size
Listed below are the three layouts forward of we assemble them. Desktop makes use of four columns, with higher serve as tiles alternating between the left and suitable.
Tablet makes use of 2 columns. The serve as tiles span the full grid width, while the smaller photos sit down down in pairs between them. Phone uses a single column, giving every image its non-public place in a vertical collection.

Step 1: Add The Row And Open The Grid Editor
Add a brand spanking new Row for your Phase and offers it 12 Columns, as confirmed underneath. Each and every child Column will cling one image.
The ones twelve content material subject material Columns are transform unbiased from the grid’s track depend. We’ll order them during 4 grid tracks on desktop.
Open the Row settings, cross to the Content material subject material tab, and click on on Open Grid Editor. If the button isn’t available, set the Row’s Layout Style to Grid underneath Design > Layout first.
The editor opens as a floating panel that you simply’ll reposition while you art work.

Set Columns to 4 and cross away Rows on auto so the grid can create rows as sought after. Set every Horz. Hollow and Vert. Hollow to 40px.
Use 12 throughout the Grid Items field to preview the twelve child Columns. This field controls the editor’s preview items; it does no longer add content material subject material Columns to the Row.

Turn on Show Grid Lines and Show Observe IDs the use of the controls on the suitable. The ones visual guides let you follow the tracks and take a look at where each and every tile sits.

The canvas now shows 4 an identical tracks, each and every sized at 1fr, with twelve numbered items. Next, we’ll turn 4 of those items into higher tiles.
Step 2: Shape The Serve as Tiles On The Canvas
Get began with products 1. Clutch its bottom-right corner take care of and resize it to cover two columns and two rows. It’ll must occupy the top-left block of the grid.
As the item expands, the surrounding items reflow in step with their placement rules. A chip categorized Rule 1 turns out to identify the new rule.
Next, resize products 4 to cover two columns and two rows on the suitable. Position it across the ultimate two columns in rows two and three.
This offers the main two serve as tiles a staggered affiliation, with smaller photos filling the spaces beside them.
Continue with items 7 and 10, giving each and every a two-column, two-row span. Place products 7 on the left underneath the main staff, then products 10 on the suitable, offset one row lower.
Follow the affiliation underneath, leaving house for the smaller tiles and checking that now not some of the serve as tiles overlap.

You presently have 4 higher tiles alternating between the left and suitable, with 8 smaller tiles arranged spherical them. Check the numbered preview items against the example forward of together with the pictures.
The site rules belong to the Row. The Image Modules we’ll add next provide the content material subject material inside of each and every tile.
Step 3: Add The Photos And Style Them Once
Add an Image Module to each and every of the twelve child Columns and make a choice {{a photograph}} for each and every one. Products 1 supplies the main serve as image, items 2 and 3 fill the smaller tiles beside it, and the remaining photos follow the numbered affiliation.
Photos with different proportions may not to start with line up as intended. We’ll coordinate their sizing, corners, and framing on one Image Module, then reuse those settings across the mosaic.
Open the main Image Module and cross to Design > Sizing. Permit Force Fullwidth so the image fills the available width.
Leaving Top on auto avoids a suite pixel peak, then again it does no longer mechanically make the image fill its grid area vertically. Use Aspect Ratio when you wish to have a relentless image shape.

For the sq. tiles used in this mosaic, set the Aspect Ratio fields to 1 for Width and 1 for Top. This establishes a sq. frame that scales with the image’s width.
Next, open Border and set all 4 rounded corners to 20px. This offers the larger and smaller tiles a relentless finish.

Open Framing and set Object Have compatibility to Duvet. This fills the image’s frame while holding the {{photograph}}’s proportions, cropping the parts that extend previous its edges.
Use Object Position to control which part of the {{photograph}} remains visible. This turns out to be useful when a face, product, or other topic sits transparent of the center.

The settings produce other jobs: Aspect Ratio establishes the frame’s proportions, while Duvet controls how the {{photograph}} fills it. Duvet alone does no longer create a sq. frame or set the grid’s row heights.
To reuse the styling, open the preset dropdown at the peak of the Image Module settings and create an Section Preset named Mosaic Image from the prevailing design settings.
Correct-click the module and select Prolong Attributes. Make a selection the preset job and extend it to the other Image Modules within this Row, as confirmed underneath. Keep the extension limited to the preset so each and every module assists in keeping its non-public {{photograph}}.
You’ll be capable to now substitute the shared styling via Mosaic Image. For example, changing the preset’s corner radius updates the pictures the use of that worth, excluding an individual module overrides it.
Evaluation the plants after applying the preset. Keep photo-specific Object Position adjustments on the particular person modules so that you’ll position each and every topic independently.
In the end, take a look at the tile edges. With equal-width grid tracks, sq. image frames, and matching horizontal and vertical gaps, the larger two-by-two tiles can align with the smaller tiles spherical them. If an edge is out of line, take a look at for conflicting image heights, margins, or Column padding.

Step 4: Regulate The Mosaic For Tablet
Switch to Tablet view the use of the instrument icons at the peak of the builder. Make the following adjustments at this breakpoint so the desktop construction stays intact.

Throughout the Grid Editor, set Columns to 2. The larger photos must span every columns, while the smaller photos sit down down in pairs.
Check the inherited placement rules along with the spans. A serve as tile positioned in desktop columns 3 and four needs a brand spanking new position during the two-column tablet grid.
The use of two columns supplies the images extra space at this width. The construction assists in keeping a mix of higher and smaller photos without squeezing 4 tiles across the show.
Reduce every Horz. Hollow and Vert. Hollow to 20px.

Evaluation the canvas for empty spaces, overlaps, or items outdoor the two intended columns. If a desktop placement leaves a gap, alter that products’s position or span for Tablet.
Keep the numbered image collection in ideas while repositioning tiles. The aim is to put the larger photos between pairs of smaller photos, as confirmed underneath.

Step 5: Regulate The Mosaic For Mobile
Switch to Phone view. We’ll simplify the mosaic appropriate right into a single-column image collection at this breakpoint.

Set Columns to 1. Then resize each and every serve as tile so its Column Span is 1. You’ll be capable to drag its corner inward on the canvas or edit its rule without delay.
Moreover review any inherited Column Get began, Column End, and row placement values. Keep every products during the primary column, use a single-row span for each and every tile, and remove or override placements that prevent the pictures from stacking in collection.
Simply reducing the column depend isn’t enough if the remaining rules however place an products previous that column. Checking every spans and positions avoids unwanted tracks and gaps.
Each and every image must now occupy the available grid width in its non-public row. The interlocking desktop affiliation turns right into a simpler vertical gallery, while the image order remains consistent.

Preview the internet web page at desktop, tablet, and phone widths forward of saving. Check for horizontal overflow, accidental gaps, and photographs whose subjects had been cropped out.
Regulate an individual image’s Object Position where sought after. Moreover resize the preview between the main breakpoint widths to ensure the construction remains balanced since the available house changes.
Reuse The Mosaic With Different Photos
The Row holds the grid building and web page rules, while the Image Modules cling the images. You’ll be capable to exchange the pictures without rebuilding the affiliation, then alter their plants to suit the new subjects.
The serve as rules function products positions. For many who reorder the child Columns, the pictures occupying positions one, 4, seven, and ten download those serve as placements.
The Mosaic Image preset helps to keep the shared image styling manageable, while the breakpoint adjustments let the an identical collection art work as a four-column mosaic, a two-column construction, and a single-column gallery.
Once the development is in place, you’ve a reusable position to start out in Divi 5 for product pictures, an editorial image collection, or a visual portfolio.
The post How To Create A Responsive Symbol Mosaic With Divi 5’s CSS Grid Editor appeared first on Sublime Issues Weblog.


![WP FixAll Vs. [Competing Plugin] Comparability: WordPress Safety Showdown: WP…](https://wpmountain.com/wp-content/uploads/2025/06/wp-fixall-vs-competing-plugin-comparability-wordpress-safety-showdown-wp_213374-150x150.jpg)


0 Comments