Съехало горизонтальное меню, что сделать?
PhantomThief3 ответов
.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-family: 'Jura', 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;
font-size: 2.1em;
}
.logo_text h2{
font-size: 1.3em;
padding: 7px 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-type: none;
margin: 1px 2px 0 0;
}
ul.menu li a{
font: normal 100% 'Jura', sans-serif;
display: block;
height: 20px;
padding: 6px 35px 2px 15px;
color: #50C7C7;
text-decoration: none;
}
ul.menu li.selected a{
color: #1B5570;
}
ul.menu li a:hover{
color: #91FFFF;
}
Съехало меню, вроде все проверил, div закрыт, но ничего не изменилось.
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="description" content = "КиноМонстр - портал о фильмах.">
<title>КиноМонстр</title>
<meta name= "keywords" content= "фильмы, портал, о кино, трейлеры, киномонстр">
<link rel="stylesheet" href = "assets/css/style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Jura:wght@700&display=swap" rel="stylesheet">
</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="#">Фильмы 2020-2021</a></li>
<li><a href="#">Сериалы 2020-2021</a></li>
<li><a href="#">Рейтинг</a></li>
<li><a href="#">Контакты</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>