Search the Community
Showing results for tags 'css-grid'.
Hi I am trying to customize porfolio gallery. Works perfect on most templates adding grid-column class to make some of the items bigger, forcing them to be 2 columns wide and 2 rows heigh using the code below grid-column:span 2 grid-row-end: span 2 My question is how can I make some of the grids vertical or rectangular too? How could I make my home page portfolio gallery to look like the attached img? I'm guessing I failure due to the aspect ratio which will always be the same: only square, only vertical, etc.
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: