Check out example codes for "css move inline image up". It will help you in understanding the concepts better.

Code Example 1

img {
    margin-right: 4px;
    position: relative;
    top: 6px
}

Learn ReactJs, React Native from akashmittal.com