littlelynx Posted March 2, 2021 Share Posted March 2, 2021 Site URL: https://tarynjohnson.com/illustration I have a page on my website that is a gallery wall. I would like it to display 2 columns when in mobile view (currently it is 1 column). How can I do this? Thanks! (I realize this question has been asked many times - I've tried the code in some of the other responses and it didn't work. Thank you in advance!) Link to comment
tuanphan Posted March 6, 2021 Share Posted March 6, 2021 Hi. Add to Design > Custom CSS /* Summary 2 items mobile */ @media screen and (max-width:767px) { div#block-yui_3_17_2_1_1544994053402_31291 .summary-item-list { display: grid !important; grid-template-columns: repeat(2,1fr) !important; height: auto !important; grid-column-gap: 5px; grid-row-gap: 5px; } div#block-yui_3_17_2_1_1544994053402_31291 .summary-item { width: 100% !important; height: auto !important; position: relative !important; top: 0 !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.