Jump to content

Custom Cover Page - Fitting to Screen

Recommended Posts

Site URL: https://disc-strawberry-4nlb.squarespace.com

Hi all, 

I have made a custom cover page/landing page by inserting code block directly to the page to remove header/footer.

( <style>
.header, #footer-sections {
  display: none !important
}
</style> )

HOWEVER, now when I view the cover page, the background image, text, and logo do not FIT/RESIZE TO SCREEN. Instead, I have to scroll down to view the whole page (see screenshot below). How do I fix this?

LINK: https://disc-strawberry-4nlb.squarespace.com
PASSWORD: gallery


THANK YOU!!

Screen Shot 2021-05-28 at 1.09.59 AM.png

Link to comment
9 hours ago, tuanphan said:

Add to Covert Page Header


<style>
  section {
    height: 100vh !important;
    overflow: hidden;
}
</style>

 

Thank you!! I added it and it worked as desired! However, now my logo/image is being cut off at the top..

When I am on my imac/large screen, it is not cut off (although the logo is now quite small and off center..) - (Screenshot #1 below) 
But when I am on my laptop, it is cut off (Screenshot #2 Below) 

Any thoughts on how to not have the logo cut off on some screens? Ideally I would love to learn a code that would allow me to tweak the size and placement on ALL screens - and have it look consistent across the board (large, centered logo but not cut off at top). Not sure if this is possible as different screens have different resolutions. Thank you so much @tuanphan🙂

Screenshot1.png

Screenshot2.png

Link to comment
  • 3 weeks later...

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.