I recently developed a website using angularjs.
<html>
<head></head>
<body ng-app="app1" ng-controller = "ctrl1">
<header></header>
<div ng-view></div>
<footer></footer>
</body>
</html>
On my website, the header and footer are always fixed. However, when navigating through different sections, I encountered an issue with one specific header that needs to be fixed in place.
The problem arises when I apply position:fixed
to that particular header - as I scroll down the main page, the content below the header appears to move upwards along with it.
My question is, how can I ensure that this specific header remains fixed in place while scrolling through the main content section?
Any assistance on this matter would be greatly appreciated!
Thank you!