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
  • Views 178
  • Created
  • Last Reply

@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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

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