Stack Overflow на русском Asked on January 27, 2021
.body {
margin: 0;
font-family: 'Montserrat', sans-serif;
font-size: 18px;
}
*,
*:before,
*:after {
box-sizing: border-box;
}
/*Container==================================================*/
.container {
width: 100%;
max-width: 1140px;
margin: 0 auto;
}
/*Header==================================================*/
.header {
padding: 20px 0;
}
.header__inner {
display: flex;
justify-content: space-between;
}
/*Nav==================================================*/
.nav {
font-size: 18px;
text-transform: uppercase;
font-family: montserrat;
color: #000;
}
.nav__link{
color: #fff;
text-decoration: none;
}
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="assets/css/style.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;0,600;0,700;1,700&display=swap" rel="stylesheet">
</head>
<body>
<header class="header">
<div class="container">
<div class="header__inner">
<nav class="nav">
<a href="nav__link" href="#">Главная</a>
<a href="nav__link" href="#">О библиотеке</a>
<a href="nav__link" href="#">Информационные ресурсы</a>
<a href="nav__link" href="#">Читателям</a>
<a href="nav__link" href="#">Библиотекарям</a>
</nav>
<div class="header__search-box">
<input type="text" name="" placeholder="Ввелите текст...">
<a class="search-btn" href="#"></a>
</div>
</div>
</div>
</header>
</body>
</html>
Должно быть так:
<a class="nav__link" href="#">Главная</a>
Answered by IRonny on January 27, 2021
смотри внимательно на тег a
- почему там 2 href
?
и посмотри порядок подключения шрифта со стилями
Answered by Алекс Данилин on January 27, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP