I can't seem to find any information about my issue on CSS Grid. This is the line I believe makes grid-template-columns: repeat(auto-fill, minmax(300px, 1.5fr));
. I used Autoprefixer but it doesn't fix the issue.
Do you have any ideas on this?
There is the whole css on that component:
.subservices__content {
list-style: none;
display: -ms-grid;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1.5fr));
grid-auto-rows: 400px;
grid-gap: 20px;
<ul className='landing-page__tabs'>
{categories.map(category => (
<Link to={`/produktai/${category.id}`} className='landing-page__tab' key={category.id}>
<li>
<div className='tab-content'>
<img
src={category.acf.image.pirma ? category.acf.image.pirma : undefined}
alt={category.name}
/>
<p>{category.name}</p>
</div>
</li>
</Link>
))}
</ul>