Upon observation, I found that setting margin: 0px
had no effect. Even after specifying a margin of 0 for left and right, the screenshot still displayed the margin.
https://i.sstatic.net/mkYsO.png
Initially, I checked for any conflicting classes or IDs causing this issue but found none.
Why is this happening? I even tried using !important
, but it didn't make any difference.
html,
body {
margin:0;
padding:0;
height:100%;
}
.header {
background: black;
height: 60px;
position: fixed;
z-index: 1;
width: 100%;
}
UPDATE:
The issue seems to be related to the unusual @media settings in Bootstrap 4. I observed that disabling these settings individually resolved the problem:
https://i.sstatic.net/VDtzj.png
Why does Bootstrap 4 behave like this, and how can I deactivate this behavior?
EDIT: Switching back to version 3.3.7 alleviated the issue completely...