Jump to content

Replicating a split-screen view in 7.1

Recommended Posts

@tuanphan here is the code I've been playing around with but it's not working yet. I found someone's tutorial online and have been trying to adjust it to fit 7.1. (I started with an image block).

#yui_3_17_2_1_1590152976189_90 {
  .content-wrapper {
    padding: 0px!important;
    max-width: 100%;
    .sqs-block {
      padding: 0px!important;
    }
    .image-inset.content-fit {
      height: 100%
    }
    .design-layout-card img {
      height: 100%!important;
      object-fit: cover;
      -o-object-fit: cover;
    }
    @media screen and (max-width: 640px) {
      .sqs-block-image .design-layout-card:not(.sqs-narrow-width) {
        display: block;
      }
      .sqs-block-image .design-layout-card:not(.sqs-narrow-width)>div:first-child {
        width: 100%;
      }
      .sqs-block-image .design-layout-card:not(.sqs-narrow-width) .image-card-wrapper {
        position: relative;
        width: 100%;
      }}}}

 

Link to comment

You insert background image, then add 2 column

  • Left: Text Block + Button Block
  • Right: Spacer Block

Next, set .section-background class 50% width & change margin-left: 50% or left:50% to push background image to right, you will have split layout on desktop

Next, on mobile, set section-background 100% width & adjust margin-top to stack text to top, image bottom

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...
On 3/16/2022 at 6:46 PM, Potter said:

I am trying to do a split screen header panel but this code doesn't seem to work now?

What is your site url? We can give the code for your case

Or You can also use Split Layout Plugin to achieve this.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 months later...
  • 2 weeks later...
  • 2 years later...

Hi there, I was using this code to create a split screen footer on my site, but it doesn't seem to be working correctly anymore/is making editing the footer pretty buggy. Does anyone know if there might be something I need to update here to better align with the updated templates from Squarespace? Thank you!
 

/*Split Footer*/
#footer-sections {display: flex;}
#footer-sections .page-section:nth-child(1), #footer-sections  .page-section:nth-child(2) {flex: 1; display: flex; flex-flow: row nowrap; justify-content: center;} @media only screen and (max-width:950px){#footer-sections {display: inline;}}

Here's my site: https://willinglee.co

CleanShot 2024-07-07 at 20.57.24@2x.png

Link to comment
On 7/8/2024 at 8:58 AM, kindandbrave said:

Hi there, I was using this code to create a split screen footer on my site, but it doesn't seem to be working correctly anymore/is making editing the footer pretty buggy. Does anyone know if there might be something I need to update here to better align with the updated templates from Squarespace? Thank you!
 

/*Split Footer*/
#footer-sections {display: flex;}
#footer-sections .page-section:nth-child(1), #footer-sections  .page-section:nth-child(2) {flex: 1; display: flex; flex-flow: row nowrap; justify-content: center;} @media only screen and (max-width:950px){#footer-sections {display: inline;}}

Here's my site: https://willinglee.co

CleanShot 2024-07-07 at 20.57.24@2x.png

I think you should use Classic Section for Left Section, then use code, it would be better.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.