This is my current code
#h1{ font-family: 'open-sans'; position: absolute; color: white; font-size: 16px; left: 850px; margin-top: 5px; position: fixed; }
Nothing works, I also tried using positional stickyness in pain but it doesn't work
You should remove position: absolute; and keep only position: fixed;.
position: absolute;
position: fixed;
h1{ position: fixed; font-family: 'open-sans'; color: white; font-size: 16px; background-color: black; top: 0;}
Hope this helps. You can also use background-color to make it display correctly.
background-color
You should remove
position: absolute;
and keep onlyposition: fixed;
.Hope this helps. You can also use
background-color
to make it display correctly.