Jump to content

Split sections suddenly not working

Go to solution Solved by LouiseDrever,

Recommended Posts

Hi there,

 

I'd previously used the following code to achieve a split screen layout, and it was working brilliantly up until recently. 

 

// Split section 1 //

@media @desktop {

  [data-current-styles*='"customContentWidth": 47'] {
    padding-top:0px !important;
  
  .section-background {
    width:50% !important;  
  }}
}

[data-current-styles*='"customContentWidth": 47']::before {
    content:"";
    background-image:url("https://static1.squarespace.com/static/5e67b77216532e7300a0c99d/t/63481b909be9e00a517b2e48/1665670046547/Engaged+nursery+worker.png");
    background-size:cover;
    position:absolute;
    width:50%;
    height:100%;
    right:0px;
  }

 

(There is a section directly below this one that isn't working either).

 

It's on this page: https://www.birminghamearlyyearsnetworks.org/nytb

Any help really appreciated!

 

Edited by LouiseDrever
Adding site url
Link to comment
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You'll have to replace:

.section-background

with

.page-section .section-border

Squarespace changed their HTML setup for backgrounds recently. I would suggest checking where you got the code originally, they might have updated it and tested it.

Please like and upvote if my comments were useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

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.