I am desperately trying to get a navbar to display horizontally. I’ve tried:
.nav li{
display: inlineblock;
}
I’ve tried naming the list various different class names and then assigning inline block to them. I’m attempted adding “pull-left” as a class to all my li elements. I’ve searched the web for the past 2 hours trying to figure this out. All of the tutorials for navbar give a block of code, show a functional horizontal navigation bar which even when I copy past into codepen comes out vertically. What am I doing wrong?
Here is my ratchet code:
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<nav role="navigation" class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href"http://codepen.io/DrFillGood/pen/ZKKOvR">Patrick's Portfolio</a>
</div>
<ul class="nav navbar-nav navbar-right">
<li class="active pull-left"><a href="http://codepen.io/DrFillGood/pen/ZKKOvR">Home</a></li>
<li class="pull-left"><a href="#">About</a></li>
<li class="pull-left"><a href="#">Contact</a></li>
<li class="pull-left"><a href="#">More</a></li>
</ul>
</div>
</nav>