Jump to content

Full screen hero image on home page load

Go to solution Solved by MariaDaniel889,

Recommended Posts

  • Replies 4
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

11 hours ago, LukeDesign said:

Hi all, new to Squarespace. I am trying to set up my home page with a hero image in the header that takes up the full screen. When you scroll down it displays the navigation bar. Here is an example:

https://rudneynovaes.com

This would only be for the home page. 

Thank you!

What is your URL site? You can share it so we can help easier

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
On 4/13/2024 at 10:11 AM, LukeDesign said:

Here is my URL:

https://www.lucasano.com/home

The test photo (flowers) is what I am trying to set full screen on the desktop. It's currently placed as a background in a block. The navigation would go underneath it and become visible when you scroll down like the example website I posted above. 

The page doesnt exist now. Can you check it again?

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
  • 2 weeks later...
  • Solution
On 4/13/2024 at 8:11 AM, LukeDesign said:

Here is my URL:

https://www.lucasano.com/home

The test photo (flowers) is what I am trying to set full screen on the desktop. It's currently placed as a background in a block. The navigation would go underneath it and become visible when you scroll down like the example website I posted above. 

To achieve the effect you're describing, you can use CSS to set the background image as full screen and place the navigation underneath it. Here's a basic example of how you can structure your HTML and CSS:

HTML:
```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Full Screen Background</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="background-image">
        <!-- Your test photo (flowers) goes here -->
    </div>
    <nav>
        <!-- Your navigation menu goes here -->
    </nav>
    <div class="content">
        <!-- Your content goes here -->
    </div>
</body>
</html>

CSS (styles.css):

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.background-image {
    background-image: url('test-photo.jpg'); /* Replace 'test-photo.jpg' with the path to your image */
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure the background stays behind other content */
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Example semi-transparent white background for navigation */
    z-index: 1; /* Ensure the navigation stays above the background */
}

.content {
    padding-top: 100px; /* Adjust this value to leave space for the navigation */
    /* Other styles for your content */
}

  / / /   In this setup, the background image will cover the entire viewport and the navigation will be fixed at the top.  / / / 

 
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.