1
0

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<meta name="description" content="Киномонстр - это портал о кино" />
<meta name="keywords" content="фильмы, фильмы онлайн, hd" />
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>

<div class="main">

<div class="header">
<div class="logo">
<div class="logo_text">
<h1><a href="/">КиноМонстр</a></h1>
<h2>Кино - наша страсть!</h2>
</div>
</div>

<div class="menubar">

<ul class="menu">
<li class="selected"><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>

<div class="site_content">

<div class="sidebar_ conteiner">

<div class="sidebar">

<h2>Поиск</h2>
<form method="post" action="#" id="search_form" >
<input type="search" name="search_field" placeholder="ваш запрос" />
<input type="submit" class="btn" value="найти" />
</form>
</div>

<div class="sidebar">
<h2>Вход</h2>
<form method="post" action="#" id="login">
<input type="text" name="login_field" placeholder="логин" />
<input type="password" name="password_field" placeholder="пароль" />
<input type="submit" class="btn" value="вход" />
<div class="lables_passreg_text">
<span><a href="#">Забыли пароль</a></span> | <span><a href="#">Регистрация</a></span>
</div>
</form>
</div>

</div>

</div>


</div>

</body>
</html>

* {
margin: 0;
padding: 0;
}

input[type="text"], input[type="password"], input[type="search"] {
color: #5d5d5d;
width: 60%;
padding: 8px;

}
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;
}

input, textarea {
outline: none;
border: none;
border: solit 1px #f2f2f2;
}

.header {
background-color: darkslateblue;
height: 177px;
font-size: 0.8em;
margin-left: 0px;
margin-right: 0px;
min-width: 900px;
}

.main, .logo, .menubar, .site_content, .footer {
margin-left: auto;
margin-right: auto;
}

.logo {
width: 880px;
padding-bottom: 40px;
}

.logo h1, .logo h2 {
font: normal 300% 'century gothic', arial, sans-serif;
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;
overflou:hidden;
margin: 20px auto 0 auto;
background-color: white;
}

.sidebar_conteiner {
float: right;
width: 224px;
}

.sidebar {
float: right;
width: 222px;
padding: 5%;
margin: 0 0 16px 0 ;
border: 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%;
}


Alex Yatsenyuk
4 years ago






<div class="sidebar_ conteiner"> - здесь просто пробел нужно убрать вот так

<div class="sidebar_conteiner">

Вадим Семенов
4 years ago

<div class="sidebar_ conteiner"> - здесь вместо conteiner должен быть container.

Совет - ищите ошибки самостоятельно. Это даст вам намного больше пользы, чем узнать ответ от кого то. Успехов

Владислав Андрианов
4 years ago

да нет, у него в стилях также прописано

.sidebar_conteiner {
float: right;
width: 224px;
}

Вадим Семенов
4 years ago

3 ответов