I am currently learning HTML/CSS and have a difficulty. My HTML is :
header
{
display: flex;
}
header:nth-child(1)
{
flex: 1;
background: white;
}
header:nth-child(2)
{
flex: 2;
background: black;
}
<header>
<div id = "Titre Principal">
<img src = "images/zozor_logo.png" alt = "Logo de Zozor"/>
<h1 class = "zouz"> Zozor </h1>
<h2 class = "hoodie"> Carnets de voyage </h2>
</div>
<nav>
<ul class = "hoodie">
<li><a href = "#"> ACCUEIL </a></li>
<li><a href = "#"> BLOG </a></li>
<li><a href = "#"> CV </a></li>
<li><a href = "#"> CONTACT </a></li>
</ul>
</nav>
</header>
The problem is that I get this
instead of this
What is going wrong ? What theoretical did I missed ?