Gap of Header Component in fixed Position can't be resolved with CSS reset #150
-
Hallo zusammen, Code Snippets: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey Stefanie, On another note, I would advise renaming the component to something other than |
Beta Was this translation helpful? Give feedback.
Hey Stefanie,
it looks like your styled component
Head
is missing a property. By addingtop: 0;
as another CSS property your headline should behave as intended :)On another note, I would advise renaming the component to something other than
Head
, since Next.js provides us with an identically named component. This might lead to confusion.For more information on the
Head
component from Next.js, see this link