Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to show the hidden content by the sticky header? Reply To: How to show the hidden content by the sticky header?

#147174
Senff
Participant

Since your header has position fixed, the other elements on the page will not “see” it and act like it’s not there (called “taken out of the flow of the document”). So, you’ll have to create some space to position the rest of the page, as if the menu’s not there.

Give the .container a top padding of 175px and the header (the one that’s sticky) a top position of 0.