fixed header fluid content

header with a certain height and a variable container

by ramesh valasa

HTML

<div class="container">
<div class="header"><span >header</span></div>
  <div class="content">content</div>
</div>

CSS

html, body {
  height: 100vh;
  margin: 0;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  border: 1px solid red;
  box-sizing: border-box;
}

.header {
  // flex-grow: 0;
  background-color: red;
  position: relative;
  height: 30px;
}
.content {
  //flex-grow: 1;
  background-color: green;
  height: 100vh;
}