Check out example codes for "css margin top responsive". It will help you in understanding the concepts better.

Code Example 1

span{
margin: -53px auto 0;
/* -53px is not the default value, 
I suggest changing this value to the one 
that best fits your website */
}

Learn ReactJs, React Native from akashmittal.com