Flex elastic layout instructions

1. Examples of horizontal and vertical centering
Method 1: