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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div class="geral">
  <div class="linha">
    <div class="cell r1c1">Turquoise #1ABC9C</div>
    <div class="cell r1c2">Esmerald #2ECC71</div>
    <div class="cell r1c3">Peter River #3498DB</div>
    <div class="cell r1c4">Amethyst #9B59B6</div>
    <div class="cell r1c5">Wet Asphalt #34495E</div>
  </div>
  <div class="linha">
    <div class="cell r2c1">Green Sea #16A085</div>
    <div class="cell r2c2">Nephritis #27AE60</div>
    <div class="cell r2c3">Belize Hole #2980B9</div>
    <div class="cell r2c4">Wisteria #8E44AD</div>
    <div class="cell r2c5">Midnight Blue #2C3E50</div>
  </div>
  <div class="linha">
    <div class="cell r3c1">Sun Flower #F1C40F</div>
    <div class="cell r3c2">Carrot #E67E22</div>
    <div class="cell r3c3">Alizarin #E74C3C</div>
    <div class="cell r3c4">Clouds #ECF0F1</div>
    <div class="cell r3c5">Concrete #95A5A6</div>
  </div>
  <div class="linha">
    <div class="cell r4c1">Orange #F39C12</div>
    <div class="cell r4c2">Pumpkin #D35400</div>
    <div class="cell r4c3">Pomegranate #C0392B</div>
    <div class="cell r4c4">Silver #BDC3C7</div>
    <div class="cell r4c5">Asbestos #7F8C8D</div>
  </div>
</div>

<footer><a href="https://codepen.io/colombe/full/mPmNbb/" target="_blank">FULL VIEW</a> | From: <a href="https://flatuicolors.com" target="_blank">Flat UI Colors</a> </footer>
              
            
!

CSS

              
                body {
  margin: 0;
  padding: 0;
  color: white;
  text-align: center;
  background: black;
  min-height:100vh;
  display:flex;
  flex-flow:column wrap;
  justify-content:center;
}

.geral {
  display: flex;
  flex-flow: column nowrap;
}

.linha {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.cell {
  width: 10%;
  padding: 1.8em;
}

.r1c1 { background: #1ABC9C; }
.r1c2 { background: #2ECC71; }
.r1c3 { background: #3498DB; }
.r1c4 { background: #9B59B6; }
.r1c5 { background: #34495E; }
.r2c1 { background: #16A085; }
.r2c2 { background: #27AE60; }
.r2c3 { background: #2980B9; }
.r2c4 { background: #8E44AD; }
.r2c5 { background: #2C3E50; }
.r3c1 { background: #F1C40F; }
.r3c2 { background: #E67E22; }
.r3c3 { background: #E74C3C; }
.r3c4 { background: #ECF0F1; color:#95A5A6;}
.r3c5 { background: #95A5A6; }
.r4c1 { background: #F39C12; }
.r4c2 { background: #D35400; }
.r4c3 { background: #C0392B; }
.r4c4 { background: #BDC3C7; }
.r4c5 { background: #7F8C8D; }

footer{
  padding:1em;
}

a{
  text-decoration:none;
  color: grey;
}

@media (max-width: 600px) {
  .cell {flex: auto;}
}

@media (max-width: 359px){
  .cell {width: 100%;}
}
              
            
!

JS

              
                
              
            
!
999px

Console