Flex shorthand

noun

say it: “FLEKS SHORT-hand” /flɛks ˈʃɔrthænd/

The flex property, which sets an item's grow, shrink and starting size in one line, such as flex: 1 for 'share the space equally.'

What is the flex shorthand?

flex sets flex-grow, flex-shrink and flex-basis in one go. flex: 1 means "share the space equally".

.pricing-plan { flex: 1; }   /* three plans, equal widths */

In a sentence

  • “Writing flex: 1 on all three columns made them the same width.”

Level: Journeyman · More CSS terms at this level

Updated