amagiovany Posted May 3 Share Posted May 3 Hello! I am using the Flatiron template because I love the grid view of the images in the browser. I would also like the mobile view to look like a grid, with two images side by side for each row. I've seen this question asked before and have tried the code snippet below but it's still not showing up in my mobile layout 😞 The website is amandacarrillo.com @media screen and (max-width:767px) { .user-items-list-item-container[data-section-id="616552a9bc722e148eebf45c"] { grid-template-columns: repeat(2,1fr) !important; } .user-items-list-item-container[data-section-id="6162ae8eb97706442ccea54f"] { grid-template-columns: repeat(2,1fr); grid-gap: 20px 20px !important; } } Link to comment
Solution tuanphan Posted May 6 Solution Share Posted May 6 Add to Design > Custom CSS > then save & reload the site /* masonry 2 items */ @media only screen and (max-width: 640px) { #grid { columns: 2; column-gap: 0; height: auto!important; display: block!important; padding: 0px; } .item { height: auto!important; } .item { position: relative!important; transform: none!important; width: 100%!important; display: block !important; padding: 1.5px!important; box-sizing: border-box; top: unset !important; } .item img { height: 100%!important; width: 100%!important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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