I am facing an issue with positioning the logo on the left side of the top navigation bar. Every time I try to implement this, it ends up breaking the frontend design.
Here is a snippet of the code:
.top-line {
border-bottom: 1px solid #cecece;
}
.top-line li {
margin-top: 15px;
margin-bottom: 15px;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- CSS Bootstrap 4.5.2 -->
<header>
<nav class="navbar navbar-expand-md navbar-light bg-light sticky-top">
<div class="navbar-toggler-right">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
<div class="collapse navbar-collapse flex-column" id="navbar">
<ul class="navbar-nav justify-content-end top-line w-100 px-3">
<img class="logo" src="https://svgshare.com/i/hqG.svg" alt="">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item dropdown">
...
I would appreciate any guidance on how to correctly position the logo in the navigation bar. Thank you in advance for your help! I am still in the learning process and any assistance is highly valued.
This post has been completely changed, for a different task. The comments below are not relevant.