Sophie_Wuthrich Posted December 27, 2022 Posted December 27, 2022 (edited) Hello, hoping someone can guide me in how to fix an awkward margin / space issue I'm having in mobile. I've added CSS code to a shape to create an inset border (code below): /* Inset Border About Shape */ #block-yui_3_17_2_1_1669446992604_1448308 { background:#eee; border: 1px solid #DDD6CD; outline: 13px solid #A69D88 } I like how it looks on desktop, but in mobile view the text is way too close to the inset border. I've tried adjusting the margins, paddings and font size on mobile but can't quite get it right. I'd like the text to be responsive to the shape border in mobile view, or at least have a better gap so it doesn't look smushed. Site: https://florence-design.squarespace.com/ Password: Florence Thank you in advance! Desktop view Mobile view Edited December 27, 2022 by Sophie_Wuthrich
Beyondspace Posted December 27, 2022 Posted December 27, 2022 13 hours ago, Sophie_Wuthrich said: Hello, hoping someone can guide me in how to fix an awkward margin / space issue I'm having in mobile. I've added CSS code to a shape to create an inset border (code below): /* Inset Border About Shape */ #block-yui_3_17_2_1_1669446992604_1448308 { background:#eee; border: 1px solid #DDD6CD; outline: 13px solid #A69D88 } I like how it looks on desktop, but in mobile view the text is way too close to the inset border. I've tried adjusting the margins, paddings and font size on mobile but can't quite get it right. I'd like the text to be responsive to the shape border in mobile view, or at least have a better gap so it doesn't look smushed. Site: https://florence-design.squarespace.com/ Password: Florence Thank you in advance! Desktop view Mobile view I check that it works properly Do you still need help? Sophie_Wuthrich 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Sophie_Wuthrich Posted December 31, 2022 Author Posted December 31, 2022 On 12/27/2022 at 11:41 PM, Beyondspace said: I check that it works properly Do you still need help? I wasn't able to find a solution so I removed the border and just decided to proceed without. If you know of a fix for the margins I'd still be very interested though! 🙂
Beyondspace Posted December 31, 2022 Posted December 31, 2022 11 hours ago, Sophie_Wuthrich said: I wasn't able to find a solution so I removed the border and just decided to proceed without. If you know of a fix for the margins I'd still be very interested though! 🙂 Do you mean something like this? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Sophie_Wuthrich Posted January 8, 2023 Author Posted January 8, 2023 On 1/1/2023 at 12:56 AM, Beyondspace said: Do you mean something like this? I was hoping to be able to keep the border on both mobile and phone, but the paragraph text overlaps with the border in mobile view. I may have to have no border on mobile view, could I ask what code you used to achieve that? Thank you in advance! 🙂
tuanphan Posted January 14, 2023 Posted January 14, 2023 On 1/8/2023 at 4:47 PM, Sophie_Wuthrich said: I was hoping to be able to keep the border on both mobile and phone, but the paragraph text overlaps with the border in mobile view. I may have to have no border on mobile view, could I ask what code you used to achieve that? Thank you in advance! 🙂 Do you still need help? 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!)
Sophie_Wuthrich Posted January 14, 2023 Author Posted January 14, 2023 24 minutes ago, tuanphan said: Do you still need help? Yes please ☺️ I’d like to either have no border on mobile view or have the border on both views but without awkward spacing between the frame and text. (Border preferred). - Sophie
tuanphan Posted January 18, 2023 Posted January 18, 2023 On 1/14/2023 at 9:16 AM, Sophie_Wuthrich said: Yes please ☺️ I’d like to either have no border on mobile view or have the border on both views but without awkward spacing between the frame and text. (Border preferred). - Sophie Which page are you referring to? I don't see this block: #block-yui_3_17_2_1_1669446992604_1448308 on homepage /* Inset Border About Shape */ #block-yui_3_17_2_1_1669446992604_1448308 { background:#eee; border: 1px solid #DDD6CD; outline: 13px solid #A69D88 } 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!)
Sophie_Wuthrich Posted January 20, 2023 Author Posted January 20, 2023 On 1/18/2023 at 10:44 PM, tuanphan said: Which page are you referring to? I don't see this block: #block-yui_3_17_2_1_1669446992604_1448308 on homepage /* Inset Border About Shape */ #block-yui_3_17_2_1_1669446992604_1448308 { background:#eee; border: 1px solid #DDD6CD; outline: 13px solid #A69D88 } Hi Tuanphan, sorry I should've updated the post. I've removed that block because I changed the design. However I have the same question for the hero section on the home page. The code is below: /* Inset Border Hero Shape */ #block-yui_3_17_2_1_1669353110896_60475 { background:#eee; border: 1px solid #DDD6CD; outline: 13px solid #fff }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment