CodePen

HTML

            
              <section class="some-area fill-height-or-more">
  <div class="centered">
      <h1>Boxes That Fill Height (or more)</h1>
      <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
  </div>
  <div>
      <h2>Two</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error ut.</p>
  </div>
  <div>
      <h2>Three</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error ut.</p>
  </div>
  <div>
      <h2>Four</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error ut.</p>
  </div>
  <div>
      <h2>Five</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error ut.</p>
  </div>
</section>
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              .fill-height-or-more {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  
  > div {
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  
  > div.centered {
    align-items:center;
    
    p {
      max-width:50%;
    }
  }
}

.some-area {
  > div {
    padding: 1rem;
    &:nth-child(1) {
      background: hsla(100, 50%, 60%, 1);
    }
    &:nth-child(2) {
      background: hsla(200, 50%, 65%, 1);
    }
    &:nth-child(3) {
      background: hsla(200, 50%, 70%, 1);
    }
    &:nth-child(4) {
      background: hsla(200, 50%, 75%, 1);
    }
    &:nth-child(5) {
      background: hsla(200, 50%, 80%, 1);
    }
    h1, h2 {
      margin: 0 0 0.2rem 0;
    }
    p {
      margin: 0;
    }
  }
}

html, body {
  height: 100%;
}

            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................