Jump to content

How to change background color on specific page (Pacific Template)

Recommended Posts

Hi I have the pacific template and am trying to target a specific page and change the background color.

I already have a custom code increasing the max-width of the content on the page as below

 

#collection-5e3c8b724983176cf11b8804
 #page { max-width: 1310px }

 

I want to keep this code and add the background color. Thanks!!!

 

---

 

Edit I was playing with it and this code changes the background color but not full width!

#collection-5e3c8b724983176cf11b8804
 #page { max-width: 1310px; background-color:#34b9ec; }

 

I need the color to go all the way to the edge of the screen

 

 

11.JPG

Link to comment
  • Replies 4
  • Created
  • Last Reply

When you ask a coding question, the community need you to provide some basic information about the site.

What is the website URL? If the site isn't live, what is the site password? Which page does your question refer to?




 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Your code above is correct, but your maximum width is smaller than the browser width. If you increase this, it should be fine. For example:

#collection-5e3c8b724983176cf11b8804 #page {
max-width: 3000px;
background: #34b9ec;
}

 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.