Limit amount of columns in Bases card view

What I’m trying to do

I have a bases cards view file where I only want 5 columns of cards, no matter what the aspect ratio of my obsidian window is. So it would always be formatted like:

| card | | card | | card | | card | | card |

| card | | card | | card | | card | | card |

| card | | card | | card | | card | | card |

| card | | card | | card | | card | | card |

I have not found a way to do this and I have not been able to find the answer on this forum or the rest of the internet.

Is it possible to specify the number of cards per row? I imagine maybe it’s not possible as it would probably give problems with smaller aspect ratios (such as a mobile interface) that would not fit 5 columns. But if it is possible, how do I do it?

Thanks in advance!

1 Like

I was also searching for a way to control the number of cards per row some time ago. I experimented a bit with a CSS snippet, but I couldn’t find a solution that didn’t break parts of the card layout. I’m still very interested if someone has figured this out.