Check out example codes for "css remove whitespace around element". It will help you in understanding the concepts better.

Code Example 1

body { margin:0px; }

header { border:1px black solid; }

Learn ReactJs, React Native from akashmittal.com