HTML


<div class="flexbox-parent">
   <div class="flexbox-item header">
        Header
   </div>
   <div class="flexbox-item fill-area content
flexbox-item-grow">
      <div class="fill-area-content flexbox-item-grow">
         <h1>I’m centered</h1>
      </div>
   </div>
   <div class="flexbox-item footer">
      Footer
   </div>
</div>


CSS


/**
// height? 100& x-y-z
*/

*, *:before, *:after {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;    
    margin: 0;
    padding: 0;
}
body {
    background: #444444;
    text-align:center;
    color: #cccccc;
    font-size: 14px;
    font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1 {
   display: -webkit-box; display: -moz-box;
   display: -ms-flexbox;
   display: -webkit-flex;
   /*display: flex;*/
   -webkit-box-align: center; -moz-box-align: center;
   -ms-flex-align: center;
   -webkit-align-items: center;
   align-items: center;
   height: 2rem;
}
.flexbox-parent {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;    
    justify-content: flex-start; /* align items in Main Axis */
    align-items: stretch; /* align items in Cross Axis */
    align-content: stretch; /* Extra space in Cross Axis */            
    background: rgba(255, 255, 255, .1);
}
.flexbox-item {
    /*padding: 10%;*/
}
.flexbox-item-grow {
    flex: 1 1 auto;
}
.flexbox-item.header {
    background-color:#5b561e;
    height:10%;
    overflow: auto;
    vertical-align: middle;
    display: -webkit-box;
   display: -moz-box;    
   display: -ms-flexbox; 
   display: -webkit-flex;
   display: flex;
   -webkit-box-align: center; -moz-box-align: center;
   -ms-flex-align: center;
   -webkit-align-items: center;
   align-items: center;
   -webkit-box-pack: center; -moz-box-pack: center;
   -ms-flex-pack: center;
   -webkit-justify-content: center;
   justify-content: center;
   margin: 0;
   width: 100%;	
}
.flexbox-item.footer {
   background-color:#163342;
   height:10%;
   overflow: auto;
   vertical-align: middle;
   display: -webkit-box;
   display: -moz-box;    
   display: -ms-flexbox; 
   display: -webkit-flex;
   display: flex;
   -webkit-box-align: center; -moz-box-align: center;
   -ms-flex-align: center;
   -webkit-align-items: center;
   align-items: center;
   -webkit-box-pack: center; -moz-box-pack: center;
   -ms-flex-pack: center;
   -webkit-justify-content: center;
   justify-content: center;
   margin: 0;
   width: 100%;	
}
.flexbox-item.content {
    /*background: rgba(0, 0, 255, .1);*/
    background-color:#988d33;
}
.fill-area {
    display: flex;	
    flex-direction: row;    
    justify-content: flex-start; 
    align-items: stretch; 
    align-content: stretch;    
}
.fill-area-content {
    background: rgba(0, 0, 0, .3);
    overflow: auto;
    vertical-align: middle;
   display: -webkit-box;
   display: -moz-box;    
   display: -ms-flexbox; 
   display: -webkit-flex;
   display: flex;
   -webkit-box-align: center; -moz-box-align: center;
   -ms-flex-align: center;
   -webkit-align-items: center;
   align-items: center;
   -webkit-box-pack: center; -moz-box-pack: center;
   -ms-flex-pack: center;
   -webkit-justify-content: center;
   justify-content: center;
   margin: 0;
   height: 100%;
   width: 100%;
}


JS




CodePlay Playground as you play with the keyboard:

Console

The CodePlay Code Box Editors Playground is very simple to use, anyone can directly interact with a minimum of knowledge of HTML experience, live an idea or a project. We believe that only 5% of the developers has the full capacity and knowledge of each key on the keyboard. Therefore we decided to put together a single command from the Key [Esc] == 27.
For every need and every situation the keyboard [Esc] key fixes and puts in place the Original Initial Code Box Editors.
All this without losing the contents of each Box Editors .
!Enjoy your CodePlay.


CodePlay Playground is a project based on WordPress entirely revised to have a clean and dynamic HTML output.

Editor:

- [Esc] To reset the Box Editors and the closure of any open window overlay, including the Output (FULL) Preview.

New! - Double Click to Expand /Open & Close All Box Editors

New! - Ctrl + Up/Down to Show /Hide the Footer Bar. This allows hide footer bar when you want, + ESC to Back.

New! - Preview in Full page is now also possible via dblClick on the Vertical Drag-bar. Each keyboard action can be Reset via the ESC button.


Ex.
- Close this? [Esc], or a Click outside.


Front End User - New /Save Post is Now Open, Register *required.
New Play Now