I think those Category div will still be placed below each other because you have set it to be "grid-cols-5". Meaning, there would only be 5 Divs of Category per row. Thus, the remaining 4 Category Divs will be placed on a new row.