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

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.