brndnr92 Posted August 13, 2020 Posted August 13, 2020 Site URL: https://octagon-helix-65yc.squarespace.com/ Hey all. I've been playing around with the Brower template for a blog. On my desktop, when I choose the basic grid blog layout or the masonry blog layout it lets you adjust the number of columns and displays it accurately on the desktop but not on mobile. Is there a way to jump into CSS and change this for mobile? So far I've tried this for 3 columns: @media only screen and (max-width: 640px) { .blog-basic-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; } } This hasn't been working however. Also I guess I would also be looking for custom css to make this work for the masonry blog layout on mobileas well. Any help ius much appreciated. Thank you! Password for the site is: bran
RyanDejaegher Posted August 13, 2020 Posted August 13, 2020 @brndnr92 try adding this to your custom CSS @media only screen and (max-width:640px) { .blog-basic-grid { display: grid; grid-template-columns: repeat(2, 1fr); } } I'd go with 2 columns on mobile, 3 could make the content pretty squished Philadelphia, PA 👉 Squarespace Tutorials Chat/Message on FB Messenger for quickest response: https://m.me/dejaegherryan
brndnr92 Posted August 13, 2020 Author Posted August 13, 2020 1 hour ago, RyanDejaegher said: @brndnr92 try adding this to your custom CSS @media only screen and (max-width:640px) { .blog-basic-grid { display: grid; grid-template-columns: repeat(2, 1fr); } } I'd go with 2 columns on mobile, 3 could make the content pretty squished @RyanDejaegher this worked! Thanks a ton. If I went with the masonry blog layout would the CSS be somewhat similar? @media only screen and (max-width:640px) { .blog-masonry{ display: grid; grid-template-columns: repeat(2, 1fr);} } I tried that and it seems like two columns were created with the masonry layout, however all the content is only in the column to the left while the right column remains empty.
brndnr92 Posted August 14, 2020 Author Posted August 14, 2020 Or, is it possible to keep the desktop version under the 'blog masonry' layout and keep the mobile version as the 'blog basic grid' layout with two columns. I've attempted to do that as well with this: #collection-5f302214b38b953003774a45 { @media only screen and (max-width:640px) { .blog-basic-grid { display: grid; grid-template-columns: repeat(2, 1fr)!important;} } }
RyanDejaegher Posted August 14, 2020 Posted August 14, 2020 Mixing and matching a masonry grid with another grid would get a bit tricky because the way Squarespace lays out images with the masonry grid, so I'd say that won't be the best solution Philadelphia, PA 👉 Squarespace Tutorials Chat/Message on FB Messenger for quickest response: https://m.me/dejaegherryan
anneline_sundby Posted December 15, 2020 Posted December 15, 2020 Hi Ryan, would you possibly know how to add border-radius and drop shadow do the thumbnail images in the blog grid? Thanks heaps, Annie https://upowr.co/news
tuanphan Posted December 20, 2020 Posted December 20, 2020 On 12/15/2020 at 5:44 PM, anneline_sundby said: Hi Ryan, would you possibly know how to add border-radius and drop shadow do the thumbnail images in the blog grid? Thanks heaps, Annie https://upowr.co/news Add to Home > Design > Custom CSS article.blog-item>div:first-child a { border-radius: 20px; box-shadow: 5px 10px 20px red; } I see your site, some page has very long content. You can consider adding a back to top button. Also, on About Page, Tablet, some text not align. If you need to fix, we can give the code. 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
Archived
This topic is now archived and is closed to further replies.