Jump to content

Slider overlay fix menu /Mojave

Recommended Posts

Hello,

I created a fix menu in Mojave, see code below. 

Now I would like that the sliders I have on my content pages goes under the fixed menu, and not over it.Is there a code for it?

Thanks for your help,

 

 

.Header, .Mobile {
  width: 100%;     /* for IE and Edge */
  position: fixed; /* for IE and Edge */
  position: -webkit-sticky; /* For Safari 6.1+ */
  position: sticky; /* Latest browsers */
  top: 0;
  z-index: 4;
}

 

Sly

Link to comment
  • 1 year later...
On 12/3/2021 at 10:45 AM, JackieWritten said:

Interested in having this feature, but am not familiar enough with code to know how to use this properly. I'd like to fix the menu to the top of the screen when people scroll down. Any coding pros or mojave users have advice?

My site is https://www.jackieminton.com/

Thanks!

Add to Design > Custom CSS

header.Header.Header--top {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 999;
}

 

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.