I'm currently working on designing a top navigation bar that features a logo with color #1 as the background on the left side. The logo is then separated by a grey horizontal divider, followed by color #2 representing the application name beside the divider. Despite my efforts, I've only managed to include the logo and a single top navigation background color. I'm struggling to figure out how to properly divide the navigation bar as desired.
HTML:
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">
<img alt="My Logo" src="my-logo-png-transparent.png">
</a>
</div>
</div>
</nav>
</body>
<script src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
crossorigin="anonymous"></script>
<script src="dashboard_static/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4c3f2920292f387e0c78627c627d7e">[email protected]</a>/dist/js/select2.min.js"></script>
<script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script>
</html>
CSS:
nav {
background: #282829;
border-bottom: 2px solid #999999;;
}
img {
height: 27.5px;
width: 23.6px;
}