CSS CSS Flexbox Layout Building a Layout with Flexbox Creating a Two Column Layout with Flexbox

Jesse Dispoto
Jesse Dispoto
Front End Web Development Techdegree Student 9,773 Points

Why did we not set a flex-basis on the .col ?

Is it because we wanted the flex items to take up all of the space available to them?

1 Answer

Janet Leon
Janet Leon
6,901 Points

Because the flex shorthand is being used. When you just say "flex" you're setting flex-basis , flex-grow, and flex-shrink- a three in one. Here, since you only specify one value, the other two are set for you.