Jump to content

Custom CSS help - Deactivate scrolling - make front page fit on one view in browser

Recommended Posts

Site URL: https://digitalvenue.squarespace.com/

Hi! I have a very simple SS 7.1 landing page that should fit on one view on every browser without the need for scrolling, but somehow there are some pixels that won't allow this, and a very short (and bothering) scroll is still there. I have removed the header via css... Any pointers on how to make this cover 100% of the browser view eliminating the scrolling?

Thanks!

Link to comment
11 hours ago, dmarquez said:

Site URL: https://digitalvenue.squarespace.com/

Hi! I have a very simple SS 7.1 landing page that should fit on one view on every browser without the need for scrolling, but somehow there are some pixels that won't allow this, and a very short (and bothering) scroll is still there. I have removed the header via css... Any pointers on how to make this cover 100% of the browser view eliminating the scrolling?

Thanks!

I used this custom css

@media only screen and (min-width: 1200px) {
    section[data-section-id="5fac3ed5c421505b5324f568"] .content-wrapper {
        padding-top: 2vh !important;
        height: 100vh
    }
    #collection-5fa97bc764a757513a1c682d .content-wrapper {
      overflow: hidden;
    }
}

image.thumb.png.5676dc82225c20061cba4e1c8e460185.png

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 1 year later...
14 hours ago, CLyon said:

Hi there, I also need this help!
Can you please take a look at https://www.takingcareofpigment.co.nz/ and tell me where I need to put this code you speak of?

Thanks

What is your protected password?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 1 year later...

Hi, I'm trying to do exactly this on my home page / welcome screenScreenshot2023-06-21at8_52_53AM.thumb.png.80d302437c75a282d007dd76ce1d8392.png, but the custom css doesn't work for me.  I just copied and pasted into my site, but its not adapting the page, so I still have to scroll to see the entire image and then get a back to top button 😞. Can someone advise me on where I'm going wrong?  I'm new to website design and coding so hopefully its just something simple that i'm missing.  

I also have a header and footer on the home page if that makes a difference.

Thank you in advance for any help.

Screenshot 2023-06-21 at 8.43.33 AM.png

Edited by RET
forgot to include some info
Link to comment
On 6/21/2023 at 10:51 PM, RET said:

Hi, I'm trying to do exactly this on my home page / welcome screenScreenshot2023-06-21at8_52_53AM.thumb.png.80d302437c75a282d007dd76ce1d8392.png, but the custom css doesn't work for me.  I just copied and pasted into my site, but its not adapting the page, so I still have to scroll to see the entire image and then get a back to top button 😞. Can someone advise me on where I'm going wrong?  I'm new to website design and coding so hopefully its just something simple that i'm missing.  

I also have a header and footer on the home page if that makes a difference.

Thank you in advance for any help.

Screenshot 2023-06-21 at 8.43.33 AM.png

Can you share link to this page? We can check easier

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

https://keystoneprojects.squarespace.com/?noredirect

Add to Design > Custom CSS

body.homepage section:first-child {
    padding-top: 0px !important;
}
body.homepage {
    overflow: hidden;
}

 

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

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.