How to make the logo was in place, and the cap in the right side?
body { margin: 0px; padding: 0px; font-family: 'Questrial', sans-serif; } .flex-container { display: flex; flex-direction: row; align-items: center; margin-left: 10px; margin-right: 10px; } .flex-container ul { display: flex; justify-content: flex-end; list-style-type: none; font-size: 20px; } .list { display: inline-block; padding: 5px 10px; margin: 0 5px 15px 0; } <header> <nav class="flex-container"> <img class="logo" src="android.png"> <ul> <li><a class="list" href="#">Home</a></li> <li><a class="list" href="#">Company</a></li> <li><a class="list" href="#">Services</a></li> <li><a class="list" href="#">Price</a></li> <li><a class="list" href="#">Projects</a></li> <li><a class="list" href="#">Order</a></li> <li><a class="list" href="#">Contacts</a></li> </ul> </nav> </header> It seems to indicate that flex-container should be row , from left to right is row - row (default value);
Namely, flex-container ul (flex-end) that is, the content should be on the right side, but it still does not work.

