Forgive me if this question is too silly. I am making a webpage on which I will have a header that consists of two parts(upper and lower). When I scroll down the page, I want the lower part of the header still stay here. How can I implement this? I plan to write a javascript to handle this – once the lower part reach (0, 0), its position is changed to absolute from relative. I think this is gonna work but I am just wondering if there exist a better and simple way to do it.
Thank you!
Forgive me if this question is too silly. I am making a webpage on
Share
check this in action: http://jsfiddle.net/JLETx/4/
UPDATE: fixed the “jumping content”
HTML
JS
CSS