Flex is a css3 specification that allows for flexible page layout design in both horizontal and vertical directions.