I figured out how to get my header to stay where it is:
header {
position: fixed;
}
The only problem is, when I fix the position, it moves the header over so that not all of it is visible. I'll show you:
BEFORE
AFTER
See what I mean? It's annoying and I haven't yet figured out how to fix it. I think it has something to do with the fact that I have
header {
display: table;
}
in my CSS. Maybe not, but that's all I can think of. Everything is valid, so it's not some discrepancy that is messing everything up. Any ideas?
Let me take a look at it. You're right to look into the display property. It is going to be some combination of display property and positioning.
ReplyDelete