I'm a bit confused because it seems like setting flex-direction: column on an element should display the children of that element in a horizontal row.
My layout is simple - at the top, I have the logo, navigation links, and some controls. Below that, the content should display in a single column with each entry appearing below the previous one.
The content is displaying properly, but within the header tag, only the links are behaving as expected. Why is this happening? What changes should be made to ensure that the logo, link #1, link #2, a, and b all appear in a single row?
* {
margin: 5px;
padding: 5px;
border: 1px #ccc solid;
}
html {
display: flex;
}
.App {
flex-direction: row;
}
header {
flex-direction: column;
}
.Content {
flex-direction: row;
}
<div class='App'>
<header>
<img src='#.png' alt='logo'>
<nav>
<a href='#'>Link 1</a>
<a href='#'>Link 2</a>
</nav>
<div class='Controls'>
<button>a</button>
<button>b</button>
</div>
</header>
<div class='Content'>
<p>Lorem ipsum ...</p>
<p>Lorem ipsum ...</p>
</div>
</div>
Thank you for your assistance!