zac4punto0 Posted November 6, 2020 Share Posted November 6, 2020 (edited) Site URL: https://www.neemakeupmilano.com Hi, I am looking for a solution to replace the image displayed on desktop (horizontal) with one optimized for mobile (vertical). Thanks for your help. Edited November 6, 2020 by zac4punto0 Typing error Link to comment
Solution Beyondspace Posted November 6, 2020 Solution Share Posted November 6, 2020 (edited) @media only screen and (max-width: 600px) { #block-yui_3_17_2_1_1604669061431_13134 .intrinsic > div { padding-bottom: 204%; background: url(REPLACE-YOUR-URL) no-repeat; background-size: cover; } #block-yui_3_17_2_1_1604669061431_13134 img { display: none; } } Please do the following things 1. Upload the image and get its url from custom css panel Using the CSS Editor – Squarespace Help 2. Replace the image url to this code and add it to Settings->Design->Custom css Edited November 6, 2020 by bangank36 zac4punto0 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
zac4punto0 Posted November 6, 2020 Author Share Posted November 6, 2020 21 minutes ago, bangank36 said: @media only screen and (max-width: 600px) { #block-yui_3_17_2_1_1604669061431_13134 .intrinsic > div { padding-bottom: 204%; background: url(REPLACE-YOUR-URL) no-repeat; background-size: cover; } #block-yui_3_17_2_1_1604669061431_13134 img { display: none; } } Please do the following things 1. Upload the image and get its url from custom css panel Using the CSS Editor – Squarespace Help 2. Replace the image url to this code and add it to Settings->Design->Custom css Great!!! Thank you so much!! Beyondspace 1 Link to comment
LulubelleDesignStudio Posted December 18, 2021 Share Posted December 18, 2021 I have a horizontal image showing on desktop of 8 instagram images. Normally I would just connect the instagram feed but she didn't want that but instead an 8 image collage. I am trying to show a stacked version on mobile view but it is not showing up. I am not sure if I did it correctly. On Desktop: Would like it to look like this on Mobile: Any help is appreciated. https://trombone-scarlet-kk6s.squarespace.com/ PW: TMCCustomHomes Link to comment
tuanphan Posted December 21, 2021 Share Posted December 21, 2021 On 12/18/2021 at 10:46 PM, LulubelleDesignStudio said: I have a horizontal image showing on desktop of 8 instagram images. Normally I would just connect the instagram feed but she didn't want that but instead an 8 image collage. I am trying to show a stacked version on mobile view but it is not showing up. I am not sure if I did it correctly. On Desktop: Would like it to look like this on Mobile: Any help is appreciated. https://trombone-scarlet-kk6s.squarespace.com/ PW: TMCCustomHomes It is 1 image, not 8 images, so no need to make 2 images/row on mobile. You can check again 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
Create an account or sign in to comment
You need to be a member in order to leave a comment