/
school120
/
web
Обзор
Документация
Войти
/
school120
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
style.css
91 строка
1 KB
Gorbach
доработали header и начали разрабатывать контент блоки
02 окт 2025, 14:52
02 окт 2025, 14:52
5591316
Код
Авторство
О чём код?
*{ margin: 0; padding: 0; border: 0; box-sizing: border-box; font-family: sans-serif; } a{ text-decoration: none; } body{ background: #f1f1f1; } header{ height: 72px; width: 100%; background: #ffffff; } .header-inner{ max-width: 960px; height: inherit; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; } nav ul{ display: flex; list-style: none; } nav ul li{ margin-right: 16px; } nav ul li:last-child{ margin-right: 0; } nav ul li a{ color: black; transition: .5s; } nav ul li a:hover{ color: #ff0000; transition: .5s; } main{ margin-top: 120px; } .main-inner{ max-width: 960px; margin: 0 auto; } .content-block{ border-radius: 20px; margin-bottom: 64px; } .cb-header{ background: #006fff; border-radius: 20px 20px 0 0; } .cb-header h2{ margin: 0 auto; padding: 50px 0; font-size: 50px; text-align: center; color: #fff; } .cb-content{ background: #ffffff; padding: 36px 42px; border-radius: 0 0 20px 20px; } .cb-content p{ font-size: 24px; margin: 24px 0; }