HTML & CSS · Middle · Question 3 of 75

What does the shorthand flex: 1 expand to?

Explanation

flex: 1 = 1 1 0%: the base size is zero, so all space is split strictly in proportion to flex-grow - columns end up equal regardless of content. flex: auto = 1 1 auto - only the free space beyond content size is shared. flex: none = 0 0 auto.

Further reading

Problem with a question

HTML & CSS · Middle · question 3

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz