Jump to content

York: Fixed Header Issue

Recommended Posts

Site URL: https://www.tyjohns.com

I'm trying to create a fixed header within the York template.

Issue: The index description scrolls over my header. 

See current CSS code pulled from other forum discussions on similar issue. Also see attached image.

#header { 
   position: fixed; 
   z-index: 1;
   background-color: white;
   border-bottom: 0px solid #bbb;
   padding-top: 30px;
   width: 100%;
   padding-bottom: 30px;
   margin-top: 0px;
 }
main#page {
    margin-top: -10px;
}

Screen Shot 2020-10-06 at 12.53.18 PM.png

Link to comment
  • Replies 5
  • Created
  • Last Reply

Try new code

#header {
    position: fixed;
    z-index: 1;
    background-color: #fff;
    border-bottom: 0px solid #bbb;
    padding-top: 30px;
    width: 100%;
    padding-bottom: 30px;
    margin-top: 0px;
	z-index: 999;
}
div#content {
    padding-top: 80px;
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.