54 lines
1.5 KiB
HTML
54 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Subnav</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.subnav-container {
|
|
max-width: 1500px;
|
|
height: 50px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: #3C3882;
|
|
padding: 0 20px;
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
top: 168px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.button {
|
|
width: 375px;
|
|
height: 50px;
|
|
background-color: #3C3882;
|
|
border: none;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
color: #8784C9;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.button:nth-child(1) { padding: 15px 139px; }
|
|
.button:nth-child(2) { padding: 15px 134px; }
|
|
.button:nth-child(3) { padding: 15px 136px; }
|
|
.button:nth-child(4) { padding: 15px 136px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="subnav-container">
|
|
<button class="button">ТЕГИ</button>
|
|
<button class="button">КАТЕГОРИИ</button>
|
|
<button class="button">ПЕРСОНАЖИ</button>
|
|
<button class="button">КОЛЛЕКЦИИ</button>
|
|
</div>
|
|
</body>
|
|
</html> |