CodePen

HTML

            
              <div class="box"></div>
            
          
!

CSS

            
              body, html{
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box{
  background: blue;
  width: 60%;
  height: 60%;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

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