Картинка и надпись выводятся не так, как в видео HTML Урок 7.1. Content главной страницы
<div class="content">
<h1>Новые фильмы</h1>
<div class="films_block">
<img src="assets/img/ЗКД.png">
</div>
</div>
*{
margin: 0;
padding: 0;
}
body{
font-size: 1.2em;
background-color: #fff;
color: #555;
}
p{
padding: 0 0 20px 0;
line-height: 1.7em;
}
input[type="text"], input[type="password"], input[type="search"]{
color: #5d5d5d;
width: 60%;
padding: 8px;
}
input, textarea{
outline: none;
border: none;
border: solid 1px #f2f2f2;
}
h1, h2{
font: normal 170% 'century gothic', arial;
margin: 0 0 15px 0;
padding: 15px 0 5px 0;
color: #000;
}
h2{
font-size: 140%;
}
a, a:hover{
outline: none;
text-decoration: underline;
color: #aeb002;
}
ul{
margin: 2px 0 22px 17px;
}
ul li{
margin: 0 0 6px 0;
padding: 0 0 4px 5px;
line-height: 1.5em;
}
.header{
background-color: darkslateblue;
height: 177px;
font-size: 0.8em;
margin-left: 0px;
margin-right: 0px;
min-width: 900px;
}
.main, .logo, .menubar, .site_contant, .footer{
margin-left: auto;
margin-right: auto;
}
.logo{
width: 880px;
padding-bottom: 40px;
}
.logo h1, .logo h2 {
font: normal 300% 'century gothic', arial, sans-sarlf;
margin: 0 0 0 9px;
}
.logo_text h1, .logo_text h1 a, .logo_text h1 a:hover {
padding: 22px 0 0 0;
color: #fff;
letter-spacing: 0.1em;
text-decoration: none;
}
.logo_text h2 {
font-size: 0.9em;
padding: 4px 0 0 0;
color: #999;
}
.menubar {
width: 900px;
height: 46px;
}
ul.menu {
float: right;
}
ul.menu li {
float: left;
padding: 0 0 0 9px;
list-style: none;
margin: 1px 2px 0 0;
}
ul.menu li a {
font: normal 100% 'trebuchet ms', sans-serif;
display: block;
height: 20px;
padding: 6px 35px 5px 28px;
color: #fff;
text-decoration: none;
}
ul.menu li.selected a {
color: #aeb002;
}
ul.menu li a:hover {
color: #e4ec04;
}
.site_content{
width: 880px;
overflow: hidden;
margin: 20px auto 0 auto;
background-color: white;
}
.sidebar_container{
float: right;
width: 224px;
}
.sidebar{
float: right;
width: 222px;
padding: 5%;
margin:0 0 16px 0;
bottom: solid 1px #f2f2f2;
border-radius: 5px;
background-color: #f9f9f9;
}
.btn{
padding: 8px;
background-color: white;
cursor: pointer;
}
.sidebar h2{
color: #136cb2;
}
.lables_passreg_text{
font-size: 0.7em;
margin-top: 3%;
margin-left: 2%;
}
.sidebar ul {
margin: 0;
}
.sidebar ul li{
list-style-type: none;
margin: 0 0 0 0;
}
.sidebar .raiting_sidebar{
float: right;
}
.content{
text-align: left;
width: 620px;
padding: 0 0 0 5px;
float: left;
}
.content a{
text-decoration: none;
}
.footer{
width: 100%;
height: 100px;
padding: 28px 0 5px 0;
text-align: center;
background-color: darkslateblue;
color: #a8aa94;
margin-left: 0;
margin-right: 0;
min-width: 900px;
}
.footer a{
color: #a8aa94;
text-decoration: none;
}
.footer a:hover{
color: white;
text-decoration: none;
}
.footer p{
padding: 0 0 10px 0;
}
Скриншот:https://sun9-4.userapi.com/c206624/v206624483/7fc7c/NJe2y8jlX0g.jpg