Jump to content

How to add coloured border to these specific text blocks

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://www.bondprosper.com/about

Hi,

I'd like to add a colourd border to the text blocks in the 'Our Values' section of my 'About' page so that it doesn't like compacted on the mobile version, as shown in the images attached.  

I already have this custom CSS for these blocks in place working:

#block-7bc3fc546b1452973de2
{border-radius:20px; background: #169b62;}

#block-cfd3c20089fa0c214fb9
{border-radius:20px; background: #169b62;}

#block-yui_3_17_2_1_1608288538793_32278
{border-radius:20px;  background: #169b62;}

#block-998a9260598b2eccef66
{border-radius:20px; background: #169b62;}

#block-yui_3_17_2_1_1608288538793_30268
{border-radius:20px; background: #169b62;}

#block-yui_3_17_2_1_1608288538793_33403
{border-radius:20px; background: #169b62;}

 

and I tried to add in border-colour: black; border-width:10px;

but it doesn't make any difference.  

Any ideas please?

image.png

image.png

Link to comment
  • Solution
4 hours ago, KickinGa said:

Site URL: https://www.bondprosper.com/about

Hi,

I'd like to add a colourd border to the text blocks in the 'Our Values' section of my 'About' page so that it doesn't like compacted on the mobile version, as shown in the images attached.  

I already have this custom CSS for these blocks in place working:

#block-7bc3fc546b1452973de2
{border-radius:20px; background: #169b62;}

#block-cfd3c20089fa0c214fb9
{border-radius:20px; background: #169b62;}

#block-yui_3_17_2_1_1608288538793_32278
{border-radius:20px;  background: #169b62;}

#block-998a9260598b2eccef66
{border-radius:20px; background: #169b62;}

#block-yui_3_17_2_1_1608288538793_30268
{border-radius:20px; background: #169b62;}

#block-yui_3_17_2_1_1608288538793_33403
{border-radius:20px; background: #169b62;}

 

and I tried to add in border-colour: black; border-width:10px;

but it doesn't make any difference.  

Any ideas please?

image.png

image.png

You may want to try this

border: 10px solid black;
padding: 5px; /*To add more space vertically*/

image.png.19e43abdcf478651af754fed7c7e1951.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
2 hours ago, bangank36 said:

You may want to try this


border: 10px solid black;
padding: 5px; /*To add more space vertically*/

image.png.19e43abdcf478651af754fed7c7e1951.png

That's great, thank you.  I actually wanted to do it the same colour as the background to create space between the boxes on mobile and it's worked, thank you.  Didn't need the padding.  

image.png.10212f75299fc6c388ffa346475ea86c.png

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.