I've implemented a fixed header in a bootstrap container and I'm attempting to make the header fill 100% of the width without any margins or paddings. Here's a snippet of the HTML structure:
<div class="container-fluid">
<div class="fixed-header" data-spy="affix" data-offset-top="200">
<!-- some content inside -->
</div>
</div>
Within my CSS file:
.affix {
padding-left: 10px;
top: 0px;
width: 100%;
z-index: 9999 !important;
background-color: rgba(0, 0, 0, 0.6);
}
The image below showcases the current result, but I'm aiming to have the header flush against the left side of the screen, denoted by the red arrow. Is there a way to achieve this desired layout?