yubrajs Posted January 28 Share Posted January 28 Hello, How can we build a posts collection page that have post thumbnails with an uneven width. Like the attachment picture. Thanks in advance! Link to comment
Roguetattoopgh Posted January 28 Share Posted January 28 This should work for you. .image-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-gap: 10px; } .image { width: 100%; height: auto; object-fit: cover; /* Preserve aspect ratio */ } Link to comment
yubrajs Posted January 28 Author Share Posted January 28 Unfortunately this doesn't work for me 😞 Here is the link: https://soybean-kangaroo-2dxw.squarespace.com/gallery password:12345 I want to update the layout as shown in the picture above. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment