I'm encountering an issue with a fixed header on my website. The list of items below the header scrolls, but the header is covering the first item at the top of the list.
Adding "margin-top:55px;" to the container holding the list moves the list down, but then the scrollbar gets hidden behind the header which doesn't look good. Any suggestions on how to display both the header and the list without any obstructions?
Your help would be greatly appreciated.
body.campaign-body { height: 100%; overflow-y: scroll; }
.container.campaign-header { position: fixed;
z-index: 1000; background: #000; width: 100%; height: 55px; color:#fff;}
.container.scroll-campaign-list { /*margin-top: 55px;*/ }
<body class="campaign-body">
<div class="container campaign-header">
<div class="row admin-header">
<div class="header-title">
<h4 class="white-txt header-name">LISTING</h4>
</div>
</div>
</div>
<div class="container scroll-campaign-list" id="campaigns-list">
<div class="row campaigns">
<div class="twelve columns list-items">
<h5 class="white-txt campaign-name">Blah blah</h5>
<p class="campaign-question grey-txt">Blah blah</p>
</div>
</div>
<hr>
... (repeated rows)
</div>
</body>