I am creating a custom code section on my home page and want to use css-grid to style it. Everything works fine except when I try to use the minmax function with fr units.
This is a common way of having elements stretch evenly across a container but then stack when the window is resized and the min width (250) is reached. However this isn't working for me in Squarespace. Any thoughts on why? I'm using Chrome, so fr units and css-grid is compatible.
grid-template-columns: reapeat(auto-fit, minmax(250px, 1fr);
This seems to work, but it's obviously not what I want:
grid-template-columns: reapeat(auto-fit, minmax(250px, 300px);
Here is my full code:
<div class="service-card service1">
Creative<br /> Engagement
<div class="service-card service2">
Ideation + <br />Innovation
<div class="service-card service3">
Career <br/> Coaching
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.1);
background-position: -150px -80px