ThisWayToFabulous Posted April 18, 2022 Posted April 18, 2022 Site URL: https://tmha-new-site.squarespace.com/galleries PASSWORD: tamara How can I code the galleries page so on mobile it shows the 4 galleries as 2x2 instead of 1 wide ?
tuanphan Posted April 19, 2022 Posted April 19, 2022 Add to Design > Custom CSS /* Galleries page 2 columns mobile */ @media screen and (max-width:767px) { div#gridThumbs { grid-template-columns: repeat(2,1fr) !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!)
ThisWayToFabulous Posted April 20, 2022 Author Posted April 20, 2022 @tuanphan YASSSS this looks so much better! One more small tweak if possible! How can i add code to be able to change the font/size/line height of the gallery titles? Would the coding request above help bring the titles a bit closer to the image above it?
tuanphan Posted April 23, 2022 Posted April 23, 2022 On 4/20/2022 at 9:22 PM, ThisWayToFabulous said: @tuanphan YASSSS this looks so much better! One more small tweak if possible! How can i add code to be able to change the font/size/line height of the gallery titles? Would the coding request above help bring the titles a bit closer to the image above it? Remove above code Add this ocde to Galleries Page Header <style> /* Galleries page 2 columns mobile */ @media screen and (max-width:767px) { div#gridThumbs { grid-template-columns: repeat(2,1fr) !important; } .portfolio-text { margin-top: 5px !Important; } h3.portfolio-title { font-size: 20px !important; } } </style> 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment