0

I know there are other questions like this, but none of them helped me

I can't make body tag full height, there is a white space before and after body tag

App.css:

html, body, #root{
  min-height: 100vh;
}

Also tried:

    html, {
      min-height: 100vh;
      position: relative;
    }

    body {
    min-height: 100vh;
}

enter image description here

nanquim
  • 1,786
  • 7
  • 32
  • 50

2 Answers2

2

The un-ordered list (<ul>) have a margin set by default. Have you tried removing that margin?

.menu-links {
  margin: 0;
}
d4vsanchez
  • 1,904
  • 1
  • 14
  • 24
1

Try removing margin and padding from html and body tag.

Try to see if the element inside the body does not have also a margin.

html, body {
  margin: 0;
  padding: 0;
}

A little demo https://codesandbox.io/s/funny-meadow-tysfm

I case of using the ul > li they have default margin as stated below.

Ion
  • 1,262
  • 12
  • 19