Hold top few lines so they dont scroll upwards
Posted: Sat Mar 25, 2023 2:19 pm
Can someone help me please.
I would like to hold the top third of my website pages so it remains locked in place when the rest of the page is scrolled up or down.
A perfect example of what i want to do is the YouTube home page where the line with the search box and the one below with categories stays where it is and the rest of the page appears to slide underneath it as you scroll the page up and down.
Please tell me there is a simple way to this
Thanks in anticipation of a positive answer.
I would like to hold the top third of my website pages so it remains locked in place when the rest of the page is scrolled up or down.
A perfect example of what i want to do is the YouTube home page where the line with the search box and the one below with categories stays where it is and the rest of the page appears to slide underneath it as you scroll the page up and down.
Please tell me there is a simple way to this
Thanks in anticipation of a positive answer.