Jump to content

How to add gallery blocks to this CSS - stretch across screen

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.recaprabbithole.com/recap/human-viruses

MOBILE ONLY:

 

This code from @tuanphan is excellent, but it only targets image blocks:

 

/* make image fullwidth */
.blog-item-wrapper article.entry {
    padding-left: 0;
    padding-right: 0;
}
/* make spacing between text blocks - both side */
.blog-item-wrapper .sqs-layout>.row>.col>div:not(.image-block) {
    padding-left: 8vw;
    padding-right: 8vw;
}
html, body {
  overflow: hidden;
}

 

Page Link

I want to make gallery blocks stretch full screen too. See screenshot, I want to make this gallery block also fullscreen like the image above:

 

 

Edited by RecapRabbitHole
Link to comment
  • Solution
/* make image fullwidth */
.blog-item-wrapper article.entry {
    padding-left: 0;
    padding-right: 0;
}
/* make spacing between text blocks - both side */
.blog-item-wrapper .sqs-layout>.row>.col>div:not(.image-block):not(.gallery-block) {
    padding-left: 8vw;
    padding-right: 8vw;
}
html, body {
  overflow: hidden;
}

 

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
12 hours ago, tuanphan said:

/* make image fullwidth */
.blog-item-wrapper article.entry {
    padding-left: 0;
    padding-right: 0;
}
/* make spacing between text blocks - both side */
.blog-item-wrapper .sqs-layout>.row>.col>div:not(.image-block):not(.gallery-block) {
    padding-left: 8vw;
    padding-right: 8vw;
}
html, body {
  overflow: hidden;
}

 

Thank you! Worked perfectly!

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.