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

Rick Wise
Rick Wise
4,034 Points

Doesn't it make sense to....?

I don't really understand why he makes the "Welcome" content the Secondary column. Doesn't it make sense to make it primary from the get-go in the HTML? Then you wouldn't have to worry about giving the secondary value a "-1."

Is there something I'm missing?

Gari Merrifield
Gari Merrifield
9,548 Points

I think the whole point is to demonstrate how you can easily rearrange the content.

Tyler Dix
Tyler Dix
14,228 Points

I think it's a design choice. From a mobile-first perspective, everything is ordered perfectly ("Welcome" appears at the top). When the layout is displayed horizontally on a large display, the design choice is to have "Welcome" appear in second place (middle), and make it a bit wider.

I think there are many valid use-cases for this, and that's probably why we're learning it. I hope that explains this (confused me as well at first).