Зеленому (.subheader) и розовому (s-limiter) блокам section и div внутри него, селектором класса в стилях задана высота, но она игнорируется. Почему так происходит?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<title>Document</title>
</head>
<body>
<header class="header">
<div class="h-limiter">
<div class="logo"></div>
<div class="nav"></div>
<div class="user-menu"></div>
</div>
</header>
<section class="subheader">!!!!<div class="s-limiter">111</div></section>
<main class="main"><div class="m-limiter"></div></main>
<footer class="footer"><div class="f-limiter"></div></footer>
</body>
</html>
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
html {
height: 100%;
background-color: white;
box-sizing: border-box;
}
body {
height: 100%;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
.header {
background-color: #3E464F;
position: fixed;
width: 100%;
display: flex;
justify-content: center;
box-sizing: border-box;
}
.h-limiter {
height: 50px;
width: 500px;
margin: 0 auto;
display: flex;
justify-content: space-between;
box-sizing: border-box;
}
.logo {
height: 100%;
width: 171px;
background-color: #3A4047;
}
.nav {
}
.user-menu {
height: 100%;
width: 52px;
background-color: #3A4047;
}
.subheader {
box-sizing: border-box;
background-color: pink;
width: 100%;
height: 2000px;
padding: 0;
}
.s-limiter {
box-sizing: border-box;
height: 50px;
width: 500px;
background-color: green;
margin: 0 auto;
}
.main {
background-color: white;
flex-grow: 1;
height: 1500px;
box-sizing: border-box;
margin: 5px 0 5px 0;
align-self: center;
}
.m-limiter {
width: 500px;
height: 100%;
background-color: whitesmoke;
display: flex;
box-sizing: border-box;
}
.footer {
background-color: #3E464F;
box-sizing: border-box;
}
.f-limiter {
height: 150px;
width: 500px;
margin: 0 auto;
box-sizing: border-box;
}