I'm struggling with aligning the search and shopping cart "icons" on mobile. On desktop, the icons should be positioned to the right of the menu as they currently are.
However, I want to move the icons to the left side of the hamburger icon in responsive states. I also want to utilize the CSS utilities that are already provided with BS4 (Bootstrap 4).
Any suggestions? Thank you in advance.
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Homepage</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
</head>
<body>
<div class="container text-uppercase">
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand my-4" href="#"><img src="https://placehold.it/200x100"></a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link pr-3" href="#">Item</a></li>
<li class="nav-item"><a class="nav-link pr-3" href="#">Item</a></li>
<li class="nav-item"><a class="nav-link pr-3" href="#">Item</a></li>
<li class="nav-item"><a class="nav-link pr-3" href="#">Item</a></li>
<li class="nav-item"><a class="nav-link pr-3" href="#">Item</a></li>
</ul>
</div>
<div class="d-flex justify-content-end">
<i class="fas fa-fw fa-search"></i>
<i class="fas fa-fw fa-shopping-cart"></i>
</div>
</nav>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
</body>
</html>