Check out example codes for "how to style rule to apply the Border Box model css". It will help you in understanding the concepts better.

Code Example 1

header, ul, nav, li, a /* other elements */{

 display: block;
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;

Learn ReactJs, React Native from akashmittal.com