I was trying to enqueue my stylesheets but it didn't work. Turns out I had forgotten to include wp_head()
inside my <head>
tag. So I did and then my stylesheets where loading fine.
The problem is that a get a CSS value that is not from my stylesheet. And I can also not override it from my stylesheet since it appears to be loading after mine. It started to come up as soon as I included wp_head()
. If I delete wp_head()
everything looks fine.
This is the weird CSS value that I get:
media="screen"
html {
margin-top: 32px !important;
}
As you can understand this is a problem since I know have a 32px margin on top of my websites. And as I stated before, I have no idea where this value comes from. I use no plugins and the only stylesheet enqueued is my style.css
and this value is not from that file. In the "console" it says that the value comes from "index" on line 334. But I got nothing there, so it must be something from WP?
Can anyone explain to me where this value comes from? And how do I change it?