Navbar elements won't align with bootstrap

Navbar elements won't align with bootstrap
0.0 0

#1

Hello, This is my code :

	<nav class="navbar navbar-expand-xs">
		<ul class="navbar-nav">
			<li class="nav-item">
				<a class="nav-link" href="#">Link1</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" href="#">Link2</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" href="#">Link3</a>
			</li>
		</ul>
	</nav>

I believe I have the head part correct, and the body part, is correct too if I follow the book, but it won’t aligne my li elements, this is the most basic navbar with bootstrap, and I verified with an actual video. I don’t know where is the error. my scripts are in the head part where the order is : ( meta viewport - script jquery - script bootstrap rel stylesheet - scipt javascript bootstrap)


#2

Is this in a Codepen? Can you provide the link? Are you using Bootstrap 3 or 4?


#3

It’s okay, I figured out the problem, it was the navbar-expand-xs problem, I put xs, and it’s way too small, “-md” works