brandahemman Posted February 26, 2021 Share Posted February 26, 2021 Site URL: https://www.newweather.se/hem1 Hi, I'm using the Pacific template and have a thin banner image on top where the navigation is displayed in desktop mode. However, when I switch to phone mode the image becomes full height, cropping the edges instead of the height. I would like to make it smaller also on the phone, or just taking it away on the phone. I've searched a lot on this and found some tips, but nothing seems to work. Can anyone help me? Password is: 1719 Link to comment
Beyondspace Posted February 26, 2021 Share Posted February 26, 2021 39 minutes ago, brandahemman said: Site URL: https://www.newweather.se/hem1 Hi, I'm using the Pacific template and have a thin banner image on top where the navigation is displayed in desktop mode. However, when I switch to phone mode the image becomes full height, cropping the edges instead of the height. I would like to make it smaller also on the phone, or just taking it away on the phone. I've searched a lot on this and found some tips, but nothing seems to work. Can anyone help me? Password is: 1719 Could you try to reduce padding of banner @media only screen and (max-width: 640px) .banner-thumbnail-wrapper { padding: 10px 0; } 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
brandahemman Posted February 26, 2021 Author Share Posted February 26, 2021 5 minutes ago, bangank36 said: @media only screen and (max-width: 640px) .banner-thumbnail-wrapper { padding: 10px 0; } Apparently there's a syntax error in the code Link to comment
brandahemman Posted February 26, 2021 Author Share Posted February 26, 2021 17 minutes ago, bangank36 said: Could you try to reduce padding of banner @media only screen and (max-width: 640px) .banner-thumbnail-wrapper { padding: 10px 0; } Apparently there's a syntax error in the code Link to comment
brandahemman Posted February 26, 2021 Author Share Posted February 26, 2021 29 minutes ago, bangank36 said: Could you try to reduce padding of banner @media only screen and (max-width: 640px) .banner-thumbnail-wrapper { padding: 10px 0; } You're a wizzard! I found the problem, a missing ";" after 640px). Now it works great! Thanks a lot! @media only screen and (max-width: 640px); .banner-thumbnail-wrapper { padding: 10px 0; } Link to comment
brandahemman Posted February 26, 2021 Author Share Posted February 26, 2021 40 minutes ago, bangank36 said: Could you try to reduce padding of banner @media only screen and (max-width: 640px) .banner-thumbnail-wrapper { padding: 10px 0; } Ooops, I was a bit too quick. It works great as long as I hace the CSS open. When I switch to pages it goes back again. Link to comment
Beyondspace Posted February 27, 2021 Share Posted February 27, 2021 9 hours ago, brandahemman said: Ooops, I was a bit too quick. It works great as long as I hace the CSS open. When I switch to pages it goes back again. Try @media only screen and (max-width: 640px) { .banner-thumbnail-wrapper { padding: 10px 0; }} It's a typo when copy 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
brandahemman Posted February 27, 2021 Author Share Posted February 27, 2021 5 hours ago, bangank36 said: @media only screen and (max-width: 640px) { .banner-thumbnail-wrapper { padding: 10px 0; }} Works like a breeze now, thanks! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.