HTML


<div id="flex-container">
  <div>1</div>
  <div>2</div><div>3</div>
  <div>4</div><div>5</div>
  <div>6</div>
  <div>7</div><div>8</div>
  <div>9</div>
</div>




CSS


* {
	box-sizing: border-box;
	margin: 0;
}
#flex-container {
  display: flex;
  flex-flow: column wrap;
	margin: 0.15rem;
}
#flex-container > :nth-child(3n + 1) {
	order: 1;
}
#flex-container > :nth-child(3n + 2) {
	order: 2;
}
#flex-container > :nth-child(3n + 3) {
	order: 3;
}
#flex-container > :nth-child(-n + 3) {
  page-break-before: always;
  break-before: always;
}
#flex-container > div {
  background: #1d7077;
  color: #fff;
  margin: 0.15rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
}
#flex-container > :nth-child(1) {
	height: 100px;
}
#flex-container > :nth-child(2) {
	height: 50px;
}
#flex-container > :nth-child(3) {
	height: 75px;
}
#flex-container > :nth-child(4) {
	height: 50px;
}
#flex-container > :nth-child(5) {
	height: 100px;
}
#flex-container > :nth-child(6) {
	height: 50px;
}
#flex-container > :nth-child(7) {
	height: 100px;
}
#flex-container > :nth-child(8) {
	height: 75px;
}
#flex-container > :nth-child(9) {
	height: 125px;
}


JS


// Flex is magic!
// Pure CSS
// Firefox only

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