I am currently learning to code with HTML and am attempting to create a navigation bar with some list items on the right side and some on the left. Although I'm using Bootstrap, I am unable to figure out how to move only the 'contact' item to the right side of my navbar. Has anyone encountered this issue before and can provide guidance? I have explored other solutions on this platform but haven't found a resolution yet. Do I need to make 'contact' its own unordered list?
I have experimented with float:right and justify-content: end, however, they shift the entire content within the ul class. The same happens when I apply ms-auto. When I try these techniques within the li class, nothing changes. Adding padding also doesn't affect the placement. My specific goal is to align 'contact' to the right side of the navbar while keeping 'About', 'My Account', and 'Login' unaffected. Please disregard the current naming conventions in my HTML file.
Below is the snippet of my code:
` <nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="images/circle_r.png" width="30" height="30" alt="">
</a>
<button class="navbar-toggler" 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" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home </span></a>
</li>
<li class="nav-item float-left">
<a class="nav-link" href="tenant.html">Login/Sign-Up</a>
</li>
<li class="nav-item">
<a class="nav-link" href="proprietor.html">My Account</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
</ul>
</div>
</nav>`