В этом уроке мы создадим Footer (нижнюю часть сайта) и структуру для всех страниц
Как прижать Footer к нижнему краю?
<!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>Киномонстр BS</title>
<!-- Bootstrap -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!-- 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="container-fluid">
<div class="row">
<nav role="navigation" class="navbar navbar-inverse">
<div class="container">
<div class="navbar-header header">
<div class="container">
<div class="row">
<div class="coll-lg-12">
<h1><a href="index.html">КиноМонстр</a></h1>
<p>Кино - наша страсть!</p>
</div>
</div>
</div>
<button type="button" data-target="#navbarCollapse" data-toggle="collapse" class="navbar-toggle">
<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 id="navbarCollapse" class="collapse navbar-collapse navbar-right">
<ul class="nav nav-pills">
<li class="active"> <a href="#">Главная</a> </li>
<li> <a href="#">Фильмы</a> </li>
<li> <a href="#">Сериалы</a> </li>
<li> <a href="#">Рейтинг фильмов</a> </li>
<li> <a href="#">Контакты</a> </li>
</ul>
</div>
</div>
</nav>
</div>
</div>
<div class="wrapper">
<div class="container">
<div class="row">
<div class="col-lg-9">
</div>
<div class="col-lg-3">
</div>
<div class="clear">
</div>
</div>
<footer>
<div class="container">
<p class="text-center"> <a href="https://vk.com">вконтакте</a> </p>
</div>
</footer>
</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>
.header a {
color: #f0ad4e;
text-decoration: none;
}
.clear {
clear: both;
height: 63px;
}
.header a:hover {
color: #ffd393;
text-decoration: none
}
.header h1 {
letter-spacing: 15px;
font-size: 300%;
}
.header a {
text-decoration: none;
}
.header p {
color: #fff !important;
font-size: 90%;
letter-spacing: 3px;
}
.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover {
color: #fff;
background-color: #f0ad4e;
}
.nav-pills>li>a {
color: #fff;
}
.nav-pills>li>a:hover {
background-color: #f0ad4e;
}
.navbar-inverse {
padding: 1%;
}
.wrapper {
min-height: 100%;
}
html {
height: 100%;
}
body {
height: 100%;
}
@media (max-width: 767px) {
.nav-pills>li {
float: none;
}
.nav-pills {
text-align: center;
}
.header h1 {
text-align: center;
letter-spacing: 5px;
}
.header p {
font-size: 80%;
text-align: center;
}
.header {
text-align: center;
}
}