Mvc ActionLink HighLight Color - html

I have a problem with Actionlink Highlight color where on Navbar.
I am using bootstrap for styling and i identified a navbar style like that in bootstrap.css file:
.navbar-custom {
background-color: #e74c3c;
border-color: #c0392b;
}
.navbar-custom .navbar-brand {
color: #ecf0f1;
}
.navbar-custom .navbar-brand:hover, .navbar-custom .navbar-brand:focus {
color: #ffbbbc;
}
.navbar-custom .navbar-text {
color: #ecf0f1;
}
.navbar-custom .navbar-nav > li > a {
color: #ecf0f1;
}
.navbar-custom .navbar-nav > li > a:hover, .navbar-custom .navbar-nav > li > a:focus {
color: #ffbbbc;
}
.navbar-custom .navbar-nav > li > .dropdown-menu {
background-color: #e74c3c;
}
.navbar-custom .navbar-nav > li > .dropdown-menu > li > a {
color: #ecf0f1;
}
.navbar-custom .navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-custom .navbar-nav > li > .dropdown-menu > li > a:focus {
color: #ffbbbc;
background-color: #c0392b;
}
.navbar-custom .navbar-nav > li > .dropdown-menu > li > .divider {
background-color: #e74c3c;
}
.navbar-custom .navbar-nav > .active > a, .navbar-custom .navbar-nav > .active > a:hover, .navbar-custom .navbar-nav > .active > a:focus {
color: #ffbbbc;
background-color: #c0392b;
}
.navbar-custom .navbar-nav > .open > a, .navbar-custom .navbar-nav > .open > a:hover, .navbar-custom .navbar-nav > .open > a:focus {
color: #ffbbbc;
background-color: #c0392b;
}
.navbar-custom .navbar-toggle {
border-color: #c0392b;
}
.navbar-custom .navbar-toggle:hover, .navbar-custom .navbar-toggle:focus {
background-color: #c0392b;
}
.navbar-custom .navbar-toggle .icon-bar {
background-color: #ecf0f1;
}
.navbar-custom .navbar-collapse,
.navbar-custom .navbar-form {
border-color: #ecf0f1;
}
.navbar-custom .navbar-link {
color: #ecf0f1;
}
.navbar-custom .navbar-link:hover {
color: #ffbbbc;
}
#media (max-width: 767px) {
.navbar-custom .navbar-nav .open .dropdown-menu > li > a {
color: #ecf0f1;
}
.navbar-custom .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-custom .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffbbbc;
}
.navbar-custom .navbar-nav .open .dropdown-menu > .active > a, .navbar-custom .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-custom .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffbbbc;
background-color: #c0392b;
}
}
Cshtml:
<div class="navbar-custom container">
<div class="container">
<div class=" navbar-header">
<button type="button" class="navbar-toggle btn-lg" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
#Html.ActionLink("FluffyMunchies", "Index", "Home", new { area = "" }, new { #class = "navbar-brand" })
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>#Html.ActionLink("Ana Sayfa", "Index", "Home")</li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Ürünler <span class="caret"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="Products">
<li>#Html.ActionLink("Cupcakes", "CupCakes", "Home")</li>
<li>#Html.ActionLink("Özel Günler", "SpecialDays", "Home")</li>
<li>#Html.ActionLink("Paket Seçenekleri", "Packages", "Home")</li>
</ul>
</li>
<li>#Html.ActionLink("Hakkında", "About", "Home")</li>
<li>#Html.ActionLink("İletişim", "Contact", "Home")</li>
</ul>
<div class="navbar-right pSet">
<a class="btn btn-social-icon btn-facebook" href="https://www.facebook.com/fluffymunchiescupcakes" target="_blank">
<i class="fa fa-facebook"></i>
</a>
<a class="btn btn-social-icon btn-instagram" href="https://instagram.com/fluffymunchies" target="_blank">
<i class="fa fa-instagram"></i>
</a>
</div>
#Html.Partial("_LoginPartial")
</div>
</div>
</div>
So; ActionLinks highlight color are gray. But; it should be red.
What is the problem?
My reference site is: http://work.smarchal.com/twbscolor/css/e74c3cc0392becf0f1ffbbbc0

Related

Bootstrap CSS - getting text to apopear on one line in grid container

I am trying to create a navbar with a grid inside of it. I need to have the text appear on one line. As you can see from this screenshot, "Cryptocurrencies / Markets" and "Market Cap" and volume take up multiple lines. I want the text to only take up one line. See attached screenshot:
I've tried changing the col-sm-x classes but no luck. I can't get everything to line up on one line. Any suggestions? Thanks.
<html>
<head>
<title>#yield('meta_title') | #lang('constants.WEBSITE_NAME')</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<style type="text/css">
/* navbar */
.navbar-default {
background-color: #337ab7;
border-color: #E7E7E7;
}
/* Title */
.navbar-default .navbar-brand {
color: #777;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #5E5E5E;
}
/* Link */
.navbar-default .navbar-nav > li > a {
color: #777;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #333;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #555;
background-color: #E7E7E7;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
color: #555;
background-color: #D5D5D5;
}
/* Caret */
.navbar-default .navbar-nav > .dropdown > a .caret {
border-top-color: #777;
border-bottom-color: #777;
}
.navbar-default .navbar-nav > .dropdown > a:hover .caret,
.navbar-default .navbar-nav > .dropdown > a:focus .caret {
border-top-color: #333;
border-bottom-color: #333;
}
.navbar-default .navbar-nav > .open > a .caret,
.navbar-default .navbar-nav > .open > a:hover .caret,
.navbar-default .navbar-nav > .open > a:focus .caret {
border-top-color: #555;
border-bottom-color: #555;
}
/* Mobile version */
.navbar-default .navbar-toggle {
border-color: #DDD;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: #DDD;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #CCC;
}
#media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #777;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #333;
}
}
.navbar-top {
padding-left:150px;
font-size:10px;
}
</style>
</head>
<body>
<nav class="navbar mobile navbar-default visible-xs">
<div class="navbar-header navbar-top">
<div class="container-fluid">
<div class="row">
<div class="col-sm-4" style="color:#fff"><strong>Cryptocurrencies</strong> 1000 / Markets 1000</div>
<div class="col-sm-5" style="color:#fff">
<strong>Market Cap</strong>:$263,920,404,123 <strong>24h Vol</strong>:$15,360,994,812
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-info btn-sm">Submit ICO</button>
<button type="button" class="btn btn-info btn-sm">Login</button>
</div>
</div>
</div>
</div>
</nav>
</body>
<html>
You may also want to include a width and margin on that div...
.navbar-top {
padding-left: 150px;
font-size: 10px;
white-space: nowrap;
width: 92%;
margin: 0 auto;
}
And on your .row div add align-items-center
<div class="row align-items-center">
...
</div>

Change caret color only if hovered or focused

I am trying to have the caret color be black if it is not hovered or focused and be white if it is hovered or focused. I have tried using :hover and :focus on the caret but they seem to have no effect.
HTML:
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Menu with caret<i class="caret"></i></a>
<ul class="dropdown-menu">
<li>
<a href="#">
Sub Menu
</a>
</li>
</ul>
</li>
</ul>
CSS:
.navbar .nav li.dropdown > .dropdown-toggle .caret {
border-top-color: #fff;
border-bottom-color: #fff;
}
#media (max-width: 767px) {
.navbar-default .navbar-nav > li > a {
background-color: #fff;
color: #333333 !important;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #fff !important;
background: #2d3335;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #ecf0f1;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffffff;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffffff;
background-color: #2d3335;
}
}
I have tried doing:
.navbar .nav li.dropdown > .dropdown-toggle .caret {
border-top-color: #000;
border-bottom-color: #000;
}
And then inside my media query:
.navbar .nav li.dropdown > .dropdown-toggle .caret:hover,
.navbar .nav li.dropdown > .dropdown-toggle .caret:focus {
border-top-color: #fff;
border-bottom-color: #fff;
}
JSFiddle Demo
The :hover should be applied to your anchor element, not the .caret.
Use this instead:
.navbar .nav li.dropdown > .dropdown-toggle .caret {
border-top-color: #333333;
border-bottom-color: #333333;
}
.navbar .nav li.dropdown > .dropdown-toggle:hover .caret,
.navbar .nav li.dropdown > .dropdown-toggle:focus .caret {
border-top-color: #fff;
border-bottom-color: #fff;
}
Code Snippet:
#media (max-width: 767px) {
.navbar-default .navbar-nav > li > a {
background-color: #fff;
color: #333333 !important;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #fff !important;
background-color: #2d3335 !important;
}
.navbar .nav li.dropdown > .dropdown-toggle .caret {
border-top-color: #333333;
border-bottom-color: #333333;
}
.navbar .nav li.dropdown > .dropdown-toggle:hover .caret,
.navbar .nav li.dropdown > .dropdown-toggle:focus .caret {
border-top-color: #fff;
border-bottom-color: #fff;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #ecf0f1;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffffff;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffffff;
background-color: #2d3335;
}
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" />
<div class="nav-gradient">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="/domains/view/high-end-price" class="dropdown-toggle" data-toggle="dropdown">
Menu with caret<i class="caret"></i></a>
<ul class="dropdown-menu">
<li>
<a href="/domains/view/new-listings">
Sub Menu
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
Revised jsFiddle
Did you try this?
navbar .nav li.dropdown > .dropdown-toggle .caret {
border-top-color: #000;
border-bottom-color: #000;
}

Float Bootstrap navbar links to the left on mobile and right on desktop

My navbar has 4 links all floating to the right. I used .pull-right to make it work. On mobile, I would like every link to move to the left except for my active link. I want my active link to stay right on all devices.
I'm trying to find the most efficient way to do this. Are there any classes within Bootstrap that can help with this or do I need to create a custom class for pulling the 3 links left on mobile?
HTML
<!-- Fixed Navbar -->
<nav class="navbar navbar-custom">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div> <!-- end navbar-header -->
<div id="navbar" class="collapse navbar-collapse pull-right">
<ul class="nav navbar-nav">
<li>Home</li>
<li>About Summit</li>
<li>Contact Us</li>
</ul>
<ul class="nav navbar-nav">
<li class="active">Client Login</li>
</ul>
</div><!--/.nav-collapse -->
</div> <!-- end container -->
</nav> <!-- end navbar navbar-custom -->
CSS
/*======= navbar ========*/
.navbar {
opacity: 0.95;
-webkit-opacity: 0.95;
-moz-opacity: 0.95;
filter: alpha(opacity=95); /* internet explorer */
}
#navbar > ul.nav a:hover {
color: #50b948; /*TD Green*/
}
.navbar-custom {
background-color: #f2f2f2;
font-family: 'Quicksand', sans-serif;
font-size: 1rem; /*14px*/
text-transform: uppercase;
font-weight: 700;
border: none;
}
.navbar-custom .navbar-brand {
color: #777;
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
color: #5e5e5e;
background-color: transparent;
}
.navbar-custom .navbar-text {
color: #777;
}
.navbar-custom .navbar-nav > li > a {
color: #777;
}
.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
color: #333;
background-color: transparent;
}
.navbar-custom .navbar-nav > .active > a {
background: #50b948;
color: #FAFAFA;
}
.navbar-custom .navbar-nav > .active > a:hover,
.navbar-custom .navbar-nav > .active > a:focus {
background: #FAFAFA;
-webkit-box-shadow: .5px .5px 4px 1px rgba(50,50,50,0.75);
-moz-box-shadow: .5px .5px 4px 1px rgba(50,50,50,0.75);
box-shadow: .5px .5px 4px 1px rgba(50,50,50,0.75);
}
.navbar-custom .navbar-nav > .disabled > a,
.navbar-custom .navbar-nav > .disabled > a:hover,
.navbar-custom .navbar-nav > .disabled > a:focus {
color: #ccc;
background-color: transparent;
}
.navbar-custom .navbar-toggle {
border-color: #ccc; /*btn border-color*/
}
.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
background-color: #ddd; /*btn color on hover*/
}
.navbar-custom .navbar-toggle .icon-bar {
background-color: #888;
}
.navbar-custom .navbar-collapse,
.navbar-custom .navbar-form {
border-color: #ccc; /*collapsed bottom border color*/
}
.navbar-custom .navbar-nav > .open > a,
.navbar-custom .navbar-nav > .open > a:hover,
.navbar-custom .navbar-nav > .open > a:focus {
background-color: #e7e7e7;
color: #555;
}
#media (max-width: 767px) {
.navbar-custom .navbar-nav .open .dropdown-menu > li > a {
color: #777;
}
.navbar-custom .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-custom .navbar-nav .open .dropdown-menu > li > a:focus {
color: #333;
background-color: transparent;
}
.navbar-custom .navbar-nav .open .dropdown-menu > .active > a,
.navbar-custom .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-custom .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #555;
background-color: #e7e7e7;
}
.navbar-custom .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-custom .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-custom .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #ccc;
background-color: transparent;
}
}
.navbar-custom .navbar-link {
color: #777;
}
.navbar-custom .navbar-link:hover {
color: #333;
}
.navbar-custom .btn-link {
color: #777;
}
.navbar-custom .btn-link:hover,
.navbar-custom .btn-link:focus {
color: #333;
}
.navbar-custom .btn-link[disabled]:hover,
fieldset[disabled] .navbar-custom .btn-link:hover,
.navbar-custom .btn-link[disabled]:focus,
fieldset[disabled] .navbar-custom .btn-link:focus {
color: #ccc;
}
The trick here will be to utilize the classes Bootstrap already adds for mobile and non-mobile.
Your div:
navbar-collapse collapse
Becomes:
navbar-collapse collapse in
When the slide down menu is opened on mobile. This means if your CSS applies to the class .navbar-collapse.in it will only apply to the open menu on mobile.
.navbar-collapse.in {
float: left !important;
}
Additionally, Bootstrap v4.0 (currently available but in alpha) contains the classes .pull-xs-left and .pull-sm-right, presumably for exactly this purpose.
Use '.navbar-right'. Specifically designed to move the nav to the right on desktop, but will move links back to the left when on mobile view.

How do I achieve my bootstrap nav design?

I have the following Twitter Bootstrap navigation bar design that currently looks like the following image...
Final navigation bar goal.
At the moment when it is put into practice it looks like the following...
Current navigation style.
It is just the standard bootstrap code and CSS that is being used. I am also wondering how to remove the slight gap that you can see both at the top and bottom of the active tab.
Thanks in advance.
Edit:
This is the current code for the navigation bar.
.navbar {
margin-bottom: 0;
}
.navbar-branded {
background-color: #00b9f2;
font-weight: bold;
border-radius: 0;
}
.navbar-branded .navbar-brand {
color: #ffffff;
}
.navbar-branded .navbar-brand:hover,
.navbar-branded .navbar-brand:focus {
color: #00b9f2;
}
.navbar-branded .navbar-text {
color: #ffffff;
}
.navbar-branded .navbar-nav > li > a {
color: #ffffff;
}
.navbar-branded .navbar-nav > li > a:hover,
.navbar-branded .navbar-nav > li > a:focus {
color: #00b9f2;
}
.navbar-branded .navbar-nav > .active > a,
.navbar-branded .navbar-nav > .active > a:hover,
.navbar-branded .navbar-nav > .active > a:focus {
color: #00b9f2;
background-color: #ffffff;
}
.navbar-branded .navbar-nav > .open > a,
.navbar-branded .navbar-nav > .open > a:hover,
.navbar-branded .navbar-nav > .open > a:focus {
color: #00b9f2;
}
.navbar-branded .navbar-toggle {} .navbar-branded .navbar-toggle:hover,
.navbar-branded .navbar-toggle:focus {
background-color: #ffffff;
}
.navbar-branded .navbar-toggle .icon-bar {
background-color: #ffffff;
}
.navbar-branded .navbar-collapse,
.navbar-branded .navbar-form {} .navbar-branded .navbar-link {
color: #ffffff;
}
.navbar-branded .navbar-link:hover {
color: #00b9f2;
}
#media (max-width: 767px) {
.navbar-branded .navbar-nav .open .dropdown-menu > li > a {
color: #ffffff;
}
.navbar-branded .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-branded .navbar-nav .open .dropdown-menu > li > a:focus {
color: #00b9f2;
}
.navbar-branded .navbar-nav .open .dropdown-menu > .active > a,
.navbar-branded .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-branded .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #00b9f2;
background-color: #ffffff;
}
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<nav class="navbar navbar-branded">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs" aria-expanded="false">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs">
<ul class="nav navbar-nav">
<li class="active">
Home
</li>
<li>
Our Team
</li>
<li>
Schedule
</li>
<li>
Requests
</li>
<li>
News
</li>
<li>
Partners
</li>
<li>
Contact us
</li>
</ul>
</div>
</div>
</nav>
You can use a table layout to distribute your links across the navbar and I believe you're referring to the border that surrounds the navbar when it comes to the "gap" around the active link: border: none;.
#media (min-width: 768px) {
.navbar.navbar-branded .navbar-nav {
display: table;
width: 100%;
}
.navbar.navbar-branded .navbar-nav > li {
display: table-cell;
float: none;
}
.navbar.navbar-branded .navbar-nav > li > a {
text-align: center;
}
}
See working Example Snippet at Full Page.
.navbar {
margin-bottom: 0;
}
.navbar.navbar-branded {
background-color: #00b9f2;
font-weight: bold;
border-radius: 0;
border: none;
}
.navbar.navbar-branded .navbar-brand {
color: #ffffff;
}
.navbar.navbar-branded .navbar-brand:hover,
.navbar.navbar-branded .navbar-brand:focus {
color: #00b9f2;
}
.navbar.navbar-branded .navbar-text {
color: #ffffff;
}
.navbar.navbar-branded .navbar-nav > li > a {
color: #ffffff;
}
.navbar.navbar-branded .navbar-nav > li > a:hover,
.navbar.navbar-branded .navbar-nav > li > a:focus {
color: #00b9f2;
}
.navbar.navbar-branded .navbar-nav > .active > a,
.navbar.navbar-branded .navbar-nav > .active > a:hover,
.navbar.navbar-branded .navbar-nav > .active > a:focus {
color: #00b9f2;
background-color: #ffffff;
}
.navbar.navbar-branded .navbar-nav > .open > a,
.navbar.navbar-branded .navbar-nav > .open > a:hover,
.navbar.navbar-branded .navbar-nav > .open > a:focus {
color: #00b9f2;
}
.navbar.navbar-branded .navbar-toggle:hover,
.navbar.navbar-branded .navbar-toggle:focus {
background-color: #ffffff;
}
.navbar-branded .navbar-toggle .icon-bar {
background-color: #ffffff;
}
.navbar.navbar-branded .navbar-collapse,
.navbar.navbar-branded .navbar-link {
color: #ffffff;
}
.navbar.navbar-branded .navbar-link:hover {
color: #00b9f2;
}
#media (max-width: 767px) {
.navbar.navbar-branded .navbar-nav .open .dropdown-menu > li > a {
color: #ffffff;
}
.navbar.navbar-branded .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar.navbar-branded .navbar-nav .open .dropdown-menu > li > a:focus {
color: #00b9f2;
}
.navbar.navbar-branded .navbar-nav .open .dropdown-menu > .active > a,
.navbar.navbar-branded .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar.navbar-branded .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #00b9f2;
background-color: #ffffff;
}
}
#media (min-width: 768px) {
.navbar.navbar-branded .navbar-nav {
display: table;
width: 100%;
}
.navbar.navbar-branded .navbar-nav > li {
display: table-cell;
float: none;
}
.navbar.navbar-branded .navbar-nav > li > a {
text-align: center;
}
}
<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.6/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<nav class="navbar navbar-branded">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs" aria-expanded="false">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs">
<ul class="nav navbar-nav">
<li class="active">
Home
</li>
<li>
Our Team
</li>
<li>
Schedule
</li>
<li>
Requests
</li>
<li>
News
</li>
<li>
Partners
</li>
<li>
Contact us
</li>
</ul>
</div>
</div>
</nav>
You can take advantage of bootstrap's built-in class .nav-justified and edit background and links colors and padding to match your design.
.navbar {
margin-bottom: 0;
}
.navbar.navbar-branded {
background-color: #00b9f2;
font-weight: bold;
border-radius: 0;
border: none;
}
.nav-justified {
color: #ffffff;
}
.nav.nav-justified > li > a {
text-align: left;
}
.nav-justified a {
color: #ffffff;
}
.nav-justified a:hover,
.nav-justified:focus {
color: #00b9f2;
}
.nav-justified .active > a,
.nav-justified .active > a:hover,
.nav-justified .active > a:focus {
color: #00b9f2;
background-color: #ffffff;
}
.navbar-toggle .icon-bar {
background-color: #fff;
}
#media (min-width: 768px) {
.nav.nav-justified > li > a {
text-align: center;
}
.nav.nav-justified > li > a {
padding-top: 15px;
padding-bottom: 15px;
}
}
<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.6/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<nav class="navbar navbar-branded">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs" aria-expanded="false">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs">
<ul class="nav nav-justified">
<li class="active">
Home
</li>
<li>
Our Team
</li>
<li>
Schedule
</li>
<li>
Requests
</li>
<li>
News
</li>
<li>
Partners
</li>
<li>
Contact us
</li>
</ul>
</div>
</div>
</nav>

html navigation bar does not display inline

I would like to implement the navigation bar style used by this open source software (http://demo.openrem.org/openrem/ct/) which uses django as a web framework. I have have grabbed the html and css from the source that I think I require. However my nav-bar does not display inline, has bullet points in the list (https://jsfiddle.net/1prLa21x/1/). I think I am missing some additional css style settings. Any pointers on how to get closer to the navbar displayed by the openrem page?
HTML
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/openrem/">nc_jobs</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li>Done</li>
<li>Not Done</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<p class="navbar-text navbar-right">
<span class="glyphicon glyphicon-user"></span>
Welcome test.user -
logout
</p>
</ul>
</div>
</div>
</div>
CSS
.navbar-default {
background-color: #7092be;
border-color: #145ebe;
}
.navbar-default .navbar-brand {
color: #e0eaf6;
}
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
color: #ffffff;
}
.navbar-default .navbar-text {
color: #e0eaf6;
}
.navbar-default .navbar-nav > li > a {
color: #e0eaf6;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
color: #ffffff;
}
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
color: #ffffff;
background-color: #145ebe;
}
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
color: #ffffff;
background-color: #145ebe;
}
.navbar-default .navbar-toggle {
border-color: #145ebe;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
background-color: #145ebe;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #e0eaf6;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #e0eaf6;
}
.navbar-default .navbar-link {
color: #e0eaf6;
}
.navbar-default .navbar-link:hover {
color: #ffffff;
}
#media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #e0eaf6;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffffff;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffffff;
background-color: #145ebe;
}
}
That example is running off the bootstrap framework -
if you add https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css as an external resource to your fiddle it displays correctly.
You can download the whole source at getbootstrap.com