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

Fixed header in Foster template


alexpanek

Question

I've made the header fixed using below code but the header is not on the top of the page. When I scroll down I can see a little bit of the content showing through small gap at the top of the page (screenshot attached). How can I move the header to the top of the page please?

.Header {
  position: fixed!important;
  z-index: 1000;
  width: 100%;
}

 

https://rhombus-paddlefish-39ss.squarespace.com/

Cheers

 

Zima website.jpg

Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

  • 0
.Header {
	position: fixed! important;
	z-index: 1000;
	width: 100%;
	top: 0;
}

also, your site is private.

 

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post
  • 0

I had a similar issue and the code you provided @tuanphan, it fixed the gap issue. The problem I'm having now is that the header is covering content that I previously placed on certain pages outside of the home/index page. Is there a way to push the content below the header? Whenever I try to add an element to the top, I can technically place it there but it remains covered by the fixed header.

See attached screenshots

Screen Shot 2020-03-30 at 3.48.06 PM.png

Screen Shot 2020-03-30 at 3.47.52 PM.png

Edited by JoshAhadian
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...