Check out example codes for "css top bottom left right order". It will help you in understanding the concepts better.

Code Example 1

Mnemonics for remembering the CSS order of top right bottom

Learn ReactJs, React Native from akashmittal.com