Check out example codes for "html inline style margin". It will help you in understanding the concepts better.

Code Example 1

<div class="myClass" style="margin-top: 20px;">
<div class="myClass">
<div class="myClass" style="margin-bottom: 20px;">

Learn ReactJs, React Native from akashmittal.com