Jump to content

Grid card auto adjustable


Recommended Posts

Hello,

It depends what solution you're after. If you only have 2 forums in a grid layout, there will likely be a few empty cells after those. To make the cells occupy the entire width, add this to custom.css

.ipsForumGrid {
	grid-template-columns: repeat(auto-fit, minmax(var(--ipsForumGrid--width), 1fr));
}

 

If you have multiple rows of forums (say 3 on one row and 2 on another), the above code will still leave an empty cell on the right side of the bottom row. To fix this (so the bottom cells occupy the entire row), you'd need to recode the grid using flexbox.

Link to comment
Share on other sites

9 minutes ago, Ehren said:

Hello,

It depends what solution you're after. If you only have 2 forums in a grid layout, there will likely be a few empty cells after those. To make the cells occupy the entire width, add this to custom.css

.ipsForumGrid {
	grid-template-columns: repeat(auto-fit, minmax(var(--ipsForumGrid--width), 1fr));
}

 

If you have multiple rows of forums (say 3 on one row and 2 on another), the above code will still leave an empty cell on the right side of the bottom row. To fix this (so the bottom cells occupy the entire row), you'd need to recode the grid using flexbox.

Fortunately I just have one row of 3 forums... 🐼 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...