Jump to content

Grey deadspace showing up after Using custom CSS

Recommended Posts

Site URL: https://teal-elephant-p648.squarespace.com/afsana-les-histoires

HI All,

Been going throug the responses here to solve a little issue I'm having with some CSS in 7.1 (making the switch from 7.0 to 7.1).

The problem was that the full bleed image being cropped on mobile. Which I sorted out after finding some custom CSS code, except there is a bunch of grey deadspace showing up underneath the section.

Can anyone help to get rid of this? (the space shows up only on mobile.

Site password 1122

 

Thank you.

image.png.30d3b45f969c2088978d53f40b9e7e03.pngimage.thumb.png.5d95c2df613bd11ee1c876964ee53472.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

@media screen and (max-width:640px) {
[data-section-id="6024f7cbb24a064cad6e4396"] .section-background img {
    width: 100% !important;
    height: auto !important;
}
}

@media screen and (max-width:767px) {
[data-section-id="6024f7cbb24a064cad6e4396"] {
    min-height: 40vh !important;
}
}

 

That's the code i'm using.

Link to comment

In your code, remove this code

@media screen and (max-width:640px) {
[data-section-id="6024f7cbb24a064cad6e4396"] .section-background img {
    width: 100% !important;
    height: auto !important;
}
}

next adjust 40vh to another number what you feel okay

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.