header
1
Попробовал сделать навигационную панель (nvbar), но получается пробел между панелью и верхом сайта
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Главная</title>
<!-- Bootstrap -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<!-- Main Style -->
<link href="assets/css/style.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="nvbar">
<div class="top_menu_left">
<ul>
<li>
<a href="#"><img src="assets/img/magnifying-glass.png"><span>Поиск по сайту</span></a>
</li>
</ul>
</div>
<div class="top_menu_right">
<ul>
<li><a href="#">Городской справочник</a></li>
<li><a href="#">Архив</a></li>
<li><a href="#">Карта сайта</a></li>
<li><a href="#"><i class="glyphicon glyphicon-user"></i> Авторизоваться</a></li>
<li><a href="#"><i class="glyphicon glyphicon-sunglasses"></i> Версия для слабовидящих</a></li>
</ul>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="assets/js/bootstrap.min.js"></script>
</body>
</html>
* {
margin: 0;
padding: 0;
}
.nvbar {
background: rgb(5, 25, 69);
color: white;
height: 40px;
border-radius: 0;
}
.nvbar ul li a {
display: block;
color: white;
font-size: 13px;;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif!important;
padding-top: 8%;
}
.nvbar ul li {
margin-top: 0;
margin-left: 5%;
list-style-type: none;
float: left;
}
.top_menu_left img {
margin-right: 10%;
}
.top_menu_left ul li {
/*background-color: #888;*/
width:150px;
}
.top_menu_right {
float: right;
margin: 0;
padding: 0;
}
.top_menu_right ul li a {
display: block;
color: #FFF;
text-decoration: none;
font-size: 13px;
margin-left: 0;
padding: 12px 30px 5px 30px;
border-left: 1px solid rgb(52, 68, 104);
}
.top_menu_right ul li {
float: left;
list-style: none;
margin-top: 0;
margin-left: 0;
padding: 0;
}