Whenever one specifies values for all directions in a single CSS property, one has to adhere to the standard order: top comes first, right second, bottom third, and left fourth. This post mentions three mnemonics for remembering that order.
Example: The four CSS properties
margin-top: 10; margin-bottom: 9; margin-left: 5; margin-right: 4;can be written as a single property:
margin: 10 4 9 5;Other examples are border and padding. Three suggestions for remembering the order:
margin: 10 4 9 5; /* trbl */