Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

York: Fixed Header Issue


Tyjohns

Question

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 post
  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

5 answers to this question

Recommended Posts

  • 0
#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;
}
div#content {
    padding-top: 80px;
}

 

Link to post
  • 0

@tuanphan

Really appreciate you taking the time. After inputting this code, the index description text still scrolls over my header. Any other ideas or elaboration on how I might fix this?

Link to post
  • 0

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;
}

 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...