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 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