Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<body>
<div class="box">
<header>
<h1><a href="javascript:void(0);">Header</a></h1>
<p><a href="javascript:void(0);">Page One</a> <a href="javascript:void(0);">Page Two</a> <a href="javascript:void(0);">Page Three</a> <a href="javascript:void(0);">Page Four</a></p>
</header>

<!--Left Column--->

<section>
<article>
<h2>Long Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. Sed dignissim lacinia nunc. </p>

<p>Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. <b>Mauris massa</b>. Maecenas mattis. Sed convallis tristique sem. <b>Vestibulum lacinia arcu eget nulla</b>. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum. <i>Lorem ipsum dolor sit amet, consectetur adipiscing elit</i>. Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. </p>

<p>Quisque volutpat condimentum velit. <b>Sed dignissim lacinia nunc</b>. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. <b>Maecenas mattis</b>. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. <i>Aenean quam</i>. Nunc feugiat mi a tellus consequat imperdiet. <b>Fusce ac turpis quis ligula lacinia aliquet</b>. Vestibulum sapien. Proin quam. Etiam ultrices. Suspendisse in justo eu magna luctus suscipit. </p>
</article>

<article>
<h2>Medium Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
</article>

<article>
<h2>Extra Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Praesent mauris. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. </p>
</article>

<article>
<h2>Short Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. </p>
</article>
</section>

<!--Right Column--->

<section>
<article class="reverse">
<h2>Short Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. </p>
</article>

<article class="reverse">
<h2>Extra Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Praesent mauris. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. </p>
</article>

<article class="reverse">
<h2>Long Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. Sed dignissim lacinia nunc. </p>

<p>Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. <b>Mauris massa</b>. Maecenas mattis. Sed convallis tristique sem. <b>Vestibulum lacinia arcu eget nulla</b>. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum. <i>Lorem ipsum dolor sit amet, consectetur adipiscing elit</i>. Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. </p>

<p>Quisque volutpat condimentum velit. <b>Sed dignissim lacinia nunc</b>. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. <b>Maecenas mattis</b>. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. <i>Aenean quam</i>. Nunc feugiat mi a tellus consequat imperdiet. <b>Fusce ac turpis quis ligula lacinia aliquet</b>. Vestibulum sapien. Proin quam. Etiam ultrices. Suspendisse in justo eu magna luctus suscipit. </p>
</article>

<article class="reverse">
<h2>Medium Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
</article>
</section>
<footer>
  <h3>Footer</h3>
  <p><a href="javascript: history.back(-1)">Back</a> <a href="javascript: history.go(0)">Refresh</a>
    <a href="javascript: history.forward(-2)">Forward</a></p>
  <p>Copyright 2013</p>
  </footer>
</div>

<div class="jump"><a href="#top"><div class="up"></div></a></div>
</body>
</html>
              
            
!

CSS

              
                <style>
 ::-webkit-scrollbar{width: 2px;}
 ::-webkit-scrollbar-track{background-color:#fff;}
 ::-webkit-scrollbar-thumb{background-color:#fff;}

body{
 font-family:"Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
 color: #fff;
 text-shadow: 1px 1px 5px #000;
 text-align: center;
 margin:0 auto;
 padding:4px;
 position: relative;
 background-color: #000;
 background-image: -webkit-gradient(linear, 0 100%, 100% 0,
    color-stop(.25, rgba(255, 255, 255, .2)), 
    color-stop(.25, transparent),
    color-stop(.5, transparent), 
    color-stop(.5, rgba(255, 255, 255, .2)),
    color-stop(.75, rgba(255, 255, 255, .2)),
    color-stop(.75, transparent), to(transparent));
 background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
 background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
 background-image: -ms-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
 background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
 background-image: linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
 -webkit-background-size: 36px 36px;
 -moz-background-size: 36px 36px;
 background-size: 36px 36px;
 background-position: fixed;}

a{text-decoration:none; color:#fff; outline: none; font-family:"Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif; text-shadow: 1px 1px 5px #000;}

.box {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    padding:.5% 1%;}

section > article {    
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;}

article {border:1px solid #fff;}

header{margin-bottom:4px; padding:.5%; border:1px solid #fff;}
footer{margin-top:0px; padding:.5%; border:1px solid #fff;}

p, h1, h2, h3 {margin: 2px;}

section{width:50%;} /* Equal Columns */

article{-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto; padding:.5%; margin:2px; margin-top:0px; margin-bottom:4px;}

.box > header{width:100%; height: auto; background: rgba(153, 0, 102, .5); margin: 0px 2px; margin-bottom:4px;}
.box > footer{width:100%; height: auto; background: rgba(153, 0, 102, .5); margin: 0px 2px;}

.box > header:hover, .box > footer:hover {  
-webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(153, 0, 102, .65);}

/*Left Post Colors*/

article:nth-of-type(4n+1) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(255, 0, 51, .5);}

article:nth-of-type(4n+2) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(170, 221, 51, .5);}

article:nth-of-type(4n+3) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(51, 204, 204, .5);}

article:nth-of-type(4n+4) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(204, 204, 0, .5);}

/* Left Post Hovers */
article:nth-of-type(4n+1):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(255, 0, 51, .65);}

article:nth-of-type(4n+2):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(170, 221, 51, .65);}

article:nth-of-type(4n+3):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(51, 204, 204, .65);}

article:nth-of-type(4n+4):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(204, 204, 0, .65);}

/*Right Post Colors*/

.reverse:nth-of-type(4n+1) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(51, 204, 204, .5);}

.reverse:nth-of-type(4n+2) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(204, 204, 0, .5);}


.reverse:nth-of-type(4n+3) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(255, 0, 51, .5);}

.reverse:nth-of-type(4n+4) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(170, 221, 51, .5);}

/*Right Post Hover*/

.reverse:nth-of-type(4n+1):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(51, 204, 204, .65);}

.reverse:nth-of-type(4n+2):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(204, 204, 0, .65);}


.reverse:nth-of-type(4n+3):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(255, 0, 51, .65);}

.reverse:nth-of-type(4n+4):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(170, 221, 51, .65);}

/* Jump to Top of Page Link */

div.jump {position:fixed; background: rgba(0,0,0, .25); border:1px solid rgba(255, 255, 255, .25); z-index:100; padding: 1px; bottom:0;
 display:block; 
 height:12px;
 width:12px; 
 -webkit-transition: background 0.75s ease-in-out; 
 -moz-transition: background 0.75s ease-in-out; 
 -o-transition: background 0.75s ease-in-out; 
 -ms-transition: background 0.75s ease-in-out;
  transition: background 0.75s ease-in-out;
 -webkit-transition: border 0.75s ease-in-out; 
 -moz-transition: border 0.75s ease-in-out; 
 -o-transition: border 0.75s ease-in-out; 
 -ms-transition: border 0.75s ease-in-out;
  transition: border 0.75s ease-in-out;}
div.jump:hover {background: rgba(0,0,0, 1); border: 1px solid rgba(255, 255, 255, 1);}
.up {width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid rgba(255, 255, 255, .25); margin: 0 auto; padding-top:3px;
 -webkit-transition: border 0.5s ease-in-out; 
 -moz-transition: border 0.5s ease-in-out; 
 -o-transition: border 0.5s ease-in-out; 
 -ms-transition: border 0.5s ease-in-out;
  transition: border 0.5s ease-in-out;}
.up:hover{border-bottom: 6px solid rgba(255, 255, 255, 1);}

/* One Column Layout for Mobile */

@media only screen and (max-width: 480px) {
  section{width:100%;}

/* Regulated Background Post Pattern */

.reverse:nth-of-type(4n+1) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(255, 0, 51, .5);}

.reverse:nth-of-type(4n+2) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(170, 221, 51, .5);}

.reverse:nth-of-type(4n+3) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(51, 204, 204, .5);}

.reverse:nth-of-type(4n+4) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(204, 204, 0, .5);}

/* Regulated Background Post Pattern Hover */

.reverse:nth-of-type(4n+1):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(255, 0, 51, .65);}

.reverse:nth-of-type(4n+2):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(170, 221, 51, .65);}

.reverse:nth-of-type(4n+3):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(51, 204, 204, .65);}

.reverse:nth-of-type(4n+4):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(204, 204, 0, .65);}}

/* Mobile Layout w/Screens larger than 480px */

@media all and (orientation: portrait) {
  section{width:100%;}

/* Regulated Background Post Pattern */

.reverse:nth-of-type(4n+1) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(255, 0, 51, .5);}

.reverse:nth-of-type(4n+2) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(170, 221, 51, .5);}

.reverse:nth-of-type(4n+3) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(51, 204, 204, .5);}

.reverse:nth-of-type(4n+4) {
    -webkit-order: 0; -ms-flex-order: 0; order: 0;
    -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
    -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
    background: rgba(204, 204, 0, .5);}

/* Regulated Background Post Pattern Hover */

.reverse:nth-of-type(4n+1):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(255, 0, 51, .65);}

.reverse:nth-of-type(4n+2):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(170, 221, 51, .65);}

.reverse:nth-of-type(4n+3):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(51, 204, 204, .65);}

.reverse:nth-of-type(4n+4):hover {
 -webkit-transition: background 0.35s ease-in-out; 
 -moz-transition: background 0.35s ease-in-out; 
 -o-transition: background 0.35s ease-in-out; 
 -ms-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
    background: rgba(204, 204, 0, .65);}}
</style>

<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
              
            
!

JS

              
                /* Note: The mostly transparent square w/a triangle in the bottom left corner is a "top of page" link that I styled to match the layout. I got bored so I made one just for that reason. */

/* Update (5/31/13): Lots of browsers bugs I need to fix. Works best in Chrome. */

/* This is my first (successful) attempt of using the Flexbox model. The post format is somewhat inspired by Pinterest's layout. I think it turned out rather well, despite the weird colors I chose. I will add a better styled navigation bar once I create one that I like. For now, this is good enough. */
              
            
!
999px

Console