How to Keep the Same Image Size When the Last Row Has Only 3 Items in Auto Grid
Hi everyone!
I've built a contact page with photos, names, job titles, email addresses, and phone numbers.
I'm using Auto Grid with 4 items per row. However, the last row only has 3 items.
I've managed to solve this before, but now I'm stuck.
What I want is for the last row to display 3 items while keeping the photos exactly the same size as when there are 4 items in a row.
Currently, when I remove the fourth item from the last row, the remaining 3 items become larger because they expand to fill the available space.
How can I prevent this and keep all items the same size, regardless of how many are in the last row?
Thanks in advance!
/Mathias
Hi Mathias,
The last row is growing because the empty fourth column is being removed and that space is shared by the three photos. To keep every photo the same width, that row has to keep four columns, with the fourth one left empty.
On the row, group, or column that holds the people:
- Set the layout to Grid.
- Set Column Widths to Equal.
- Set the number of columns to 4.
- Turn Collapse Empty Columns off.
The last row then shows three photos at the same size as the rows above, with a blank space where the fourth photo would sit.
If this block uses a KrafterPRO layout preset, apply k-layout-grid-4. That preset is a fixed four-column grid, so a short last row stays the same size. It steps down to two columns on tablet and one on phone, on every row.
The auto-fit grids, including the older autogrid preset, are the ones that drop the empty column and enlarge whatever is left. Auto-fill keeps the empty column, but the count follows the minimum width, so it will not stay at four on every screen.
If it still stretches after Collapse Empty Columns is off, send a screenshot of those layout settings and we can check which preset is applied.
Hi Mak,
Thanks for the detailed explanation!
I tried following your instructions, but I'm running into another issue.
When I switch to Grid and apply the settings you suggested, the three cards in the last row end up stacking vertically instead of staying horizontally aligned like the other rows.
What I'm trying to achieve is four cards per row, with the final three cards staying side by side at exactly the same width as the others.
Could this be related to how the rows and columns are structured, or is there another setting I might be missing?
Thanks again for your help!
/Mathias