Разместить объекты (Bootstrap)
Как разместить логотип вправо а текст с корзиной влево, и выровнять как на картинке? У меня выходить только так.
вот код HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,600;1,900&family=Rancho&family=Sancreek&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Italian shop</title>
</head>
<body>
<header class="menu-bar">
<div class="container">
<div class="row">
<div class="col-xl-2">
<img src="img/logo_shop.png" alt="logo" class="logo">
</div>
<div class="col-xl-8 ml-auto align-self-center">
<nav>
<ul class="d-flex justify-content-end">
<li class="menu__item"><a href="#">Mainpage</a></li>
<li class="menu__item"><a href="#">Products</a></li>
<li class="menu__item"><a href="#">Contacts</a></li>
<li class="menu__item"><a href="#"><img src="img/cart_icon.png"></a></li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>
CSS
body {
min-width: 320px;
background: url("img/back.svg") no-repeat;
}
ul, li {
display: block;
padding: 0;
margin: 0;
}
.menu-bar{
padding: 10px 0;
color: white;
}
.menu__item {
margin-left: 37px;
}
.menu__item a{
font-family: Montserrat;
font-style: italic;
font-size: 28px;
color: white;
}
.menu__item a:hover {
text-decoration: none;
color: red;
}
