Jump to content

CSS code to make slideshow full width of browser window

Recommended Posts

  • Replies 1
  • Views 178
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi @waypoint

This is the code you need, add it into your Custom CSS panel.
 

body:not(.sqs-edit-mode-active) {
  overflow-x: hidden;
  
  // full width blocks
  #block-yui_3_17_2_1_1533160323790_11724,
  #block-yui_3_17_2_8_1471981268301_7054 {
    position: relative;
    width: 100vw;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  // extra space for slideshow controls
  #block-yui_3_17_2_1_1533160323790_11724 .sqs-gallery-controls {
    .next {
      right:2rem;
    }
    .previous {
      left: 2rem;
    }
  }
}

If you need to make more blocks full width, you can do this by finding and adding the block ID to the code

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.