CSS CSS Flexbox Layout Building a Layout with Flexbox Building a Navigation Bar with Flexbox

Why .main-header is not stack as a column?

At 5:41 .main-header is set to column but it doesn’t seem to be column but as row. Column layout stack on each other but at browser they seem to be on next line in row format?

Christopher Gardner
Christopher Gardner
12,347 Points

When the .main-header is set to flex it only applies to the direct child elements. So this will create a column using the <h1> container and the <ul> container as a whole. Since the <li> elements are child containers of the <ul> container and not the .main-header they are not affected.