Just started using twitter-bootstrap and I'm trying to customize the navbar
by removing borders and padding, adding a hover effect for links with a different background color
, and setting margins of about 10px on the left and right. However, I'm having trouble getting the margins to work properly.
Here's my code:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Case</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Catamaran:100|Luckiest+Guy|Quicksand:300|Asap:700|Montserrat:700|Open+Sans|Roboto|Signika:700" rel="stylesheet"/>
</head>
<body>
<style>
.navbar-default {
border: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: #00a3fe;
font-family: 'Quicksand', sans-serif;font-size: 14pt;font-weight: 800;width: 100%; valign: middle;color : #ffffff;
}
.nav.navbar-nav.navbar-right li a {
color: #ffffff;
}
.nav.navbar-nav.navbar-nav li a {
color: #ffffff;
}
</style>
<nav class = "navbar navbar-default" role = "navigation">
<div class = "navbar-header">
<button type = "button" class = "navbar-toggle"
data-toggle = "collapse" data-target = "#example-navbar-collapse">
<span class = "sr-only">Toggle navigation</span>
<span class = "icon-bar"></span>
<span class = "icon-bar"></span>
<span class = "icon-bar"></span>
</button>
<a class = "navbar-brand" href = "#">Company</a>
</div>
<div class = "collapse navbar-collapse" id = "example-navbar-collapse">
<ul class="nav navbar-nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
</ul>
<ul class="nav navbar-nav navbar-nav">
<li class="non-active"><a href="#">Sign up</a></li>
</ul>
<ul class="nav navbar-nav navbar-nav">
<li class="non-active"><a href="#">Register</a></li>
</ul>
<ul class="nav navbar-nav navbar-nav">
<li class="non-active"><a href="#">About</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-user"></span> Login</a> </li>
</ul>
</div>
</nav>
</body>
</html>