Jump to content

Create colored bounding box for content

Recommended Posts

Site URL: https://www.kremington.com

I'm using the blank template and would like to create a colored bounding box around my content, like you see with many other websites. For example, these two seen here:

1435825227_ScreenShot3.thumb.png.f2c380e9e73756784bb38cf5c2b0fe6d.png

1009753810_ScreenShot4.thumb.png.e0fe2d90c97f2851dc537bc44fb2d625.png

(https://www.mikechenbooks.com/ and https://www.cgpgrey.com/)

My website is kremington.com (very underdeveloped at the moment). I'm wondering how I might best set something like this up. I don't need anything fancy like background images or transparency, just a solid single-color bounding box (I'm sure there's a more official name than that). 

Any help would be greatly appreciated!

Link to comment
4 hours ago, KRemington said:

Site URL: https://www.kremington.com

I'm using the blank template and would like to create a colored bounding box around my content, like you see with many other websites. For example, these two seen here:

1435825227_ScreenShot3.thumb.png.f2c380e9e73756784bb38cf5c2b0fe6d.png

1009753810_ScreenShot4.thumb.png.e0fe2d90c97f2851dc537bc44fb2d625.png

(https://www.mikechenbooks.com/ and https://www.cgpgrey.com/)

My website is kremington.com (very underdeveloped at the moment). I'm wondering how I might best set something like this up. I don't need anything fancy like background images or transparency, just a solid single-color bounding box (I'm sure there's a more official name than that). 

Any help would be greatly appreciated!

Try adding to Home > Design > Custom Css

section[data-section-id="6193328782fcf92d7a4532ab"] .content-wrapper .content {
  background: rgb(197,183,154,0.34);
  padding: 20px 20px;
}

Try adding background on you section and apply the above code.

Copy this code and change section[...] when you want to apply on another section

Hope it can help you

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

That definitely works, thanks! A couple of questions:

  1. Is there a way to make it so that this applies to all sections by default, so that it doesn't need to be applied to each section manually? 
  2. If not, what is the best way to find the section id? (e.g. data-section-id="6193328782fcf92d7a4532ab"). 

Pardon the ignorance; appreciate the help!

Link to comment
On 12/13/2021 at 12:11 AM, KRemington said:

That definitely works, thanks! A couple of questions:

  1. Is there a way to make it so that this applies to all sections by default, so that it doesn't need to be applied to each section manually? 
  2. If not, what is the best way to find the section id? (e.g. data-section-id="6193328782fcf92d7a4532ab"). 

Pardon the ignorance; appreciate the help!

#1. Change this class name

Quote
section[data-section-id="6193328782fcf92d7a4532ab"]

to this

Quote

article section

#2. Use this tool: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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

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.