# Can we arrange the subcategories like this?

**URL:** <https://meta.discourse.org/t/can-we-arrange-the-subcategories-like-this/311917>\
**Category:** Development\
**Tags:** css\
**Created:** [June 13, 2024, 1:17pm UTC](https://meta.discourse.org/t/can-we-arrange-the-subcategories-like-this/311917 "2024-06-13T13:17:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Alteras](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alteras/32/582398_2.png) [@Alteras](https://meta.discourse.org/u/Alteras)\
**Post date:** [June 13, 2024, 7:13pm UTC](https://meta.discourse.org/t/can-we-arrange-the-subcategories-like-this/311917/6 "2024-06-13T19:13:22Z")

</div>

You’ll want to use CSS Grids here.

Something like:

```css
.category-list .subcategories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, min-content));
}

```

If you want the columns to be perfectly equal size, you can change `min-content` to `1fr`.

---

_[View the full topic](https://meta.discourse.org/t/can-we-arrange-the-subcategories-like-this/311917)._
