Jump to content

Shape inset border and text awkward margin in mobile.

Recommended Posts

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

 1537867376_ScreenShot2022-12-27at10_24_02am.thumb.png.25f1bb138c7ece3ec5d0c7babf8ec640.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mobile view

IMG-6097.thumb.PNG.eda0be446cda7ecd0c9fb42605195453.PNG

 

Edited by Sophie_Wuthrich
Link to comment
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

 1537867376_ScreenShot2022-12-27at10_24_02am.thumb.png.25f1bb138c7ece3ec5d0c7babf8ec640.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mobile view

IMG-6097.thumb.PNG.eda0be446cda7ecd0c9fb42605195453.PNG

 

I check that it works properly

image.thumb.png.981f6005bea34101192f57107172e3c0.png

Do you still need help?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
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?

image.thumb.png.01936e580d7ea7bb0713031a1974e5fe.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 1/1/2023 at 12:56 AM, Beyondspace said:

Do you mean something like this?

image.thumb.png.01936e580d7ea7bb0713031a1974e5fe.png

 

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! 🙂

Link to comment
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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
}

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.