Jump to content

How to add coloured border to these specific text blocks

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
  • Replies 2
  • Views 841
  • Created
  • Last Reply
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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.