Check out example codes for "css broken image has top margin?". It will help you in understanding the concepts better.

Code Example 1

/* to fix broken images with top marging add a veritcal align to them
img {
    vertical-align: middle;
}

Learn ReactJs, React Native from akashmittal.com