anjaemzen Posted February 10, 2022 Posted February 10, 2022 Site URL: http://anjaemzen.com/ Hi! I was wondering if it's possible to add custom CSS to my Squarespace site, so that all the images are full-bleed when shown on mobile devices? And if yes, what CSS code do I need to add? Thanks a lot, I really appreciate it! All the best, Anja
tuanphan Posted February 14, 2022 Posted February 14, 2022 Add to Design > Custom CSS @media screen and (max-width:767px) { main#page { padding-left: 0px; padding-right: 0px; } } 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!)
anjaemzen Posted February 19, 2022 Author Posted February 19, 2022 Thank you so much for your answer @tuanphan! ☺️ It worked for the images, even though they wouldn't stay in place if I moved my finger sideways on the screen. But what also happened was that all the left aligned text on the website also turned full-bleed. For the text I would love to keep the margin. Do you know is this is possible, plus making the images stay in place? Like on this site if you look at it on a mobile: https://lottanieminen.com/index/eadem Thanks a lot again!
tuanphan Posted February 23, 2022 Posted February 23, 2022 On 2/20/2022 at 3:07 AM, anjaemzen said: Thank you so much for your answer @tuanphan! ☺️ It worked for the images, even though they wouldn't stay in place if I moved my finger sideways on the screen. But what also happened was that all the left aligned text on the website also turned full-bleed. For the text I would love to keep the margin. Do you know is this is possible, plus making the images stay in place? Like on this site if you look at it on a mobile: https://lottanieminen.com/index/eadem Thanks a lot again! Try this new code @media screen and (max-width:767px) { main#page { padding-left: 0px; padding-right: 0px; } } html, body {overflow-x:hidden;} anjaemzen 1 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!)
anjaemzen Posted February 24, 2022 Author Posted February 24, 2022 Thank you again @tuanphan! Now the images work perfectly, it's just the margin for the text that is still missing (see attached examples). I would like to keep the margin as it is originally in mobile view. Do you think that's possible? Thank you so much for your help!!
anjaemzen Posted February 24, 2022 Author Posted February 24, 2022 Like this (regarding margins for the text) @tuanphan 🙂
tuanphan Posted February 27, 2022 Posted February 27, 2022 On 2/24/2022 at 2:57 PM, anjaemzen said: Like this (regarding margins for the text) @tuanphan 🙂 Just checked & looks fine to me. Can you share link to page in screenshot? 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!)
anjaemzen Posted February 28, 2022 Author Posted February 28, 2022 The margins for the text is correct as it is, but I'd love for all the images to be full bleed in mobile version. When I tried your code the margins for the text also disappeared @tuanphan http://anjaemzen.com/framkalla
tuanphan Posted March 3, 2022 Posted March 3, 2022 On 2/28/2022 at 5:06 PM, anjaemzen said: The margins for the text is correct as it is, but I'd love for all the images to be full bleed in mobile version. When I tried your code the margins for the text also disappeared @tuanphan http://anjaemzen.com/framkalla can't make it fullbleed, you can add this CSS to remove some space on left/right of images @media screen and (max-width:640px) { body#collection-60219bd41962f40812f492ca .image-block { padding-left: 0 !important; padding-right: 0 !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!)
Gazmozmarsh Posted February 19, 2023 Posted February 19, 2023 Hello, I am having the same issue with my home page. I would like all the images to bleed off the page but the text to stay as is. https://marshandco.com/
tuanphan Posted February 25, 2023 Posted February 25, 2023 On 2/20/2023 at 12:51 AM, Gazmozmarsh said: Hello, I am having the same issue with my home page. I would like all the images to bleed off the page but the text to stay as is. https://marshandco.com/ Add to Design > Custom CSS div#block-yui_3_17_2_1_1676723424189_16831 { width: 100vw; left: 50%; transform: translateX(-50%); } body { overflow-x: hidden; } 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