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

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

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
  • 2 months later...
10 hours ago, Potter said:

Which page are you referring to?

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
On 5/25/2022 at 3:35 PM, Potter said:

The home page header, I want it to look like the attached ideally.

Screenshot 2022-05-25 at 09.35.23.png

Your site is private. Can you check it again?

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
  • 2 weeks later...
On 6/8/2022 at 4:03 PM, Potter said:

I think you can add 2 sections, then we can give code to make them side by side. It will be easier

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.