#Why element positioning is wrong?

4 messages · Page 1 of 1 (latest)

crystal sun
#

That means, either you have some empty content in the header pushing it down or you have some CSS applied to the body that puts everying in the center and you did not show that CSS.

#

Or you have an additional container around the App div and it has styling to center its children.

#

I just noticed the min-height: 100vh on the header. It didn't show when I copied your code because you had className for React and that doesn't work in vanilla HTML/CSS.