How to get rid of the white space [duplicate]

Add the following CSS rule :

body {
  margin: 0;
}

See this answer for more details.