CSS Master Code Examples: Chapter 5

Back to chapter demo list

Understanding Flexbox

Adjust the values in the form control to see their effect. Related specification: CSS Flexible Box Layout Module Level 1.

  • A
  • B

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

  • C
  • D

    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

  • E

    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Flex container properties

The properties above can also be combined using the flex-flow shorthand property.

Flex items
A

Condense these properties using the flex shorthand.

flex:0 1 15%

B

Condense these properties using the flex shorthand.

flex:0 1 15%

C

Condense these properties using the flex shorthand.

flex:0 1 15%

D

Condense these properties using the flex shorthand.

flex:0 1 15%

E

Condense these properties using the flex shorthand.

flex:0 1 15%