Jump to content

Fixed Section spanning full width of browser window

Recommended Posts

Site : https://www.ribetmyles.co.uk/landing

Rest of site: www.ribetmyles.co.uk

I have made a landing page for my client, they wanted a bespoke header that was different from the rest of the site so I disabled the header and am using a section block as the 'header'. Using the below:

<style>
  #header, header {
  display: none!important;}
</style>

They then wanted this block to be fixed to the top of the page and viewable so the phone number was always accessible which I have done, in the CSS:

[data-section-id="65855b7e958eebc0f9ca9b3e"] {
  position: fixed;
  z-index: 1;
}

The issue i find now is that the block does not 'fill the page' and seems to stop at a certain point (site container size? not sure) 

Tried a bunch of things including :

// FULL WIDTH SECTION section //

[data-section-id="65855b7e958eebc0f9ca9b3e"] { overflow-x: hidden !important; overflow-y:hidden !important; } section[data-section-id="65855b7e958eebc0f9ca9b3e"] { .content-wrapper { padding: 0px !important; margin: 0px auto; display: contents; } .sqs-layout .sqs-row .sqs-block { padding-bottom: 0px !important; padding-top: 0px !important; } }

Implementing this then stops the section from being fixed.....any help here would be much appreciated 

Thanks

Screenshot 2024-01-02 at 15.46.02.png

Link to comment
  • Replies 2
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.