Here is my code:
.header{
display: flex;
justify-content: center;
height: 60px;
}
.header .header-content{
display: flex;
align-items: center;
height: 100%;
width: 70%;
}
.menu{
float: right;
}
ul{
list-style: none;
}
li{
display: inline;
margin-left: 40px;
}
<div class="header">
<div class="header-content">
<div class="logo">
<img src="logo.png" alt="" srcset="">
</div>
<div class="menu">
<ul>
<li>All Courses</li>
<li>Interactive Courses</li>
<li>Sign Up Free</li>
</ul>
</div>
</div>
</div>
Why the div with class name 'menu' is not floating to the right side?
I would like that div to float to the right side of its parent.
Thank you.