CodePen

HTML

            
              <div class="one">
  <div class="two">
    hello
  </div>
</div>
            
          
!

CSS

            
              div.one {
  display: table;
  height: 300px;
  margin: 0 auto;
}

div.two {
  background-color: tomato;
  color: white;
  font-family: calibri;
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  width: 200px;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

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