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="container">
  <div class="centered">
    <div class="pixels">
    </div>
  </div>
</div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}
.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-items: center;
}
.centered {
  margin: auto;
}
.pixels {
  margin: auto;
  height: 10px;
  width: 10px;
  margin-left: -70px;
  margin-top: -70px;
  
  box-shadow: 30px 10px 0 0 #9e856e, 40px 10px 0 0 #9e856e, 50px 10px 0 0 #9e856e, 60px 10px 0 0 #9e856e, 70px 10px 0 0 #9e856e, 80px 10px 0 0 #9e856e, 90px 10px 0 0 #9e856e, 20px 20px 0 0 #9e856e, 30px 20px 0 0 #9e856e, 40px 20px 0 0 #9e856e, 50px 20px 0 0 #9e856e, 60px 20px 0 0 #9e856e, 70px 20px 0 0 #9e856e, 80px 20px 0 0 #9e856e, 90px 20px 0 0 #9e856e, 100px 20px 0 0 #9e856e, 10px 30px 0 0 #9e856e, 20px 30px 0 0 #9e856e, 30px 30px 0 0 #9e856e, 40px 30px 0 0 #e6c1aa, 50px 30px 0 0 #e6c1aa, 60px 30px 0 0 #e6c1aa, 70px 30px 0 0 #9e856e, 80px 30px 0 0 #e6c1aa, 90px 30px 0 0 #e6c1aa, 100px 30px 0 0 #9e856e, 110px 30px 0 0 #9e856e, 10px 40px 0 0 #9e856e, 20px 40px 0 0 #9e856e, 30px 40px 0 0 #e6c1aa, 40px 40px 0 0 #e6c1aa, 50px 40px 0 0 #e6c1aa, 60px 40px 0 0 #e6c1aa, 70px 40px 0 0 #e6c1aa, 80px 40px 0 0 #e6c1aa, 90px 40px 0 0 #e6c1aa, 100px 40px 0 0 #e6c1aa, 110px 40px 0 0 #9e856e, 10px 50px 0 0 #9e856e, 20px 50px 0 0 #000000, 30px 50px 0 0 #000000, 40px 50px 0 0 #000000, 50px 50px 0 0 #000000, 60px 50px 0 0 #000000, 70px 50px 0 0 #000000, 80px 50px 0 0 #000000, 90px 50px 0 0 #000000, 100px 50px 0 0 #000000, 110px 50px 0 0 #000000, 120px 50px 0 0 #000000, 10px 60px 0 0 #9e856e, 20px 60px 0 0 #7b5840, 30px 60px 0 0 #e6c1aa, 40px 60px 0 0 #000000, 50px 60px 0 0 #356399, 60px 60px 0 0 #ffffff, 70px 60px 0 0 #000000, 80px 60px 0 0 #000000, 90px 60px 0 0 #000000, 100px 60px 0 0 #356399, 110px 60px 0 0 #ffffff, 120px 60px 0 0 #000000, 10px 70px 0 0 #9e856e, 20px 70px 0 0 #7b5840, 30px 70px 0 0 #e6c1aa, 40px 70px 0 0 #000000, 50px 70px 0 0 #ffffff, 60px 70px 0 0 #ffffff, 70px 70px 0 0 #000000, 80px 70px 0 0 #e6c1aa, 90px 70px 0 0 #000000, 100px 70px 0 0 #ffffff, 110px 70px 0 0 #ffffff, 120px 70px 0 0 #000000, 10px 80px 0 0 #9e856e, 20px 80px 0 0 #7b5840, 30px 80px 0 0 #e6c1aa, 40px 80px 0 0 #e6c1aa, 50px 80px 0 0 #000000, 60px 80px 0 0 #000000, 70px 80px 0 0 #e6c1aa, 80px 80px 0 0 #e6c1aa, 90px 80px 0 0 #e6c1aa, 100px 80px 0 0 #000000, 110px 80px 0 0 #000000, 10px 90px 0 0 #9e856e, 20px 90px 0 0 #7b5840, 30px 90px 0 0 #7b5840, 40px 90px 0 0 #e6c1aa, 50px 90px 0 0 #e6c1aa, 60px 90px 0 0 #e6c1aa, 70px 90px 0 0 #7b5840, 80px 90px 0 0 #7b5840, 90px 90px 0 0 #7b5840, 100px 90px 0 0 #e6c1aa, 110px 90px 0 0 #9e856e, 10px 100px 0 0 #9e856e, 20px 100px 0 0 #9e856e, 30px 100px 0 0 #7b5840, 40px 100px 0 0 #7b5840, 50px 100px 0 0 #e6c1aa, 60px 100px 0 0 #7b5840, 70px 100px 0 0 #b56d69, 80px 100px 0 0 #b56d69, 90px 100px 0 0 #b56d69, 100px 100px 0 0 #7b5840, 20px 110px 0 0 #9e856e, 30px 110px 0 0 #9e856e, 40px 110px 0 0 #7b5840, 50px 110px 0 0 #7b5840, 60px 110px 0 0 #7b5840, 70px 110px 0 0 #7b5840, 80px 110px 0 0 #7b5840, 90px 110px 0 0 #7b5840, 100px 110px 0 0 #7b5840, 20px 120px 0 0 #9e856e, 30px 120px 0 0 #9e856e, 50px 120px 0 0 #7b5840, 60px 120px 0 0 #7b5840, 70px 120px 0 0 #7b5840, 80px 120px 0 0 #7b5840, 90px 120px 0 0 #7b5840;
}
@media only screen 
  and (min-width: 768px) {
    
    .pixels {
       margin-left: -85px;
       margin-top: -85px;
      
  box-shadow: 60px 10px 0 0 #9e856e, 70px 10px 0 0 #9e856e, 80px 10px 0 0 #9e856e, 90px 10px 0 0 #9e856e, 100px 10px 0 0 #9e856e, 50px 20px 0 0 #9e856e, 60px 20px 0 0 #9e856e, 70px 20px 0 0 #9e856e, 80px 20px 0 0 #9e856e, 90px 20px 0 0 #9e856e, 100px 20px 0 0 #9e856e, 110px 20px 0 0 #9e856e, 30px 30px 0 0 #9e856e, 40px 30px 0 0 #9e856e, 50px 30px 0 0 #9e856e, 60px 30px 0 0 #9e856e, 70px 30px 0 0 #9e856e, 80px 30px 0 0 #9e856e, 90px 30px 0 0 #9e856e, 100px 30px 0 0 #9e856e, 110px 30px 0 0 #9e856e, 120px 30px 0 0 #9e856e, 30px 40px 0 0 #9e856e, 40px 40px 0 0 #9e856e, 50px 40px 0 0 #9e856e, 60px 40px 0 0 #e6c1aa, 70px 40px 0 0 #e6c1aa, 80px 40px 0 0 #e6c1aa, 90px 40px 0 0 #9e856e, 100px 40px 0 0 #e6c1aa, 110px 40px 0 0 #e6c1aa, 120px 40px 0 0 #9e856e, 130px 40px 0 0 #9e856e, 20px 50px 0 0 #9e856e, 30px 50px 0 0 #9e856e, 40px 50px 0 0 #9e856e, 50px 50px 0 0 #e6c1aa, 60px 50px 0 0 #e6c1aa, 70px 50px 0 0 #e6c1aa, 80px 50px 0 0 #e6c1aa, 90px 50px 0 0 #e6c1aa, 100px 50px 0 0 #e6c1aa, 110px 50px 0 0 #e6c1aa, 120px 50px 0 0 #e6c1aa, 130px 50px 0 0 #9e856e, 20px 60px 0 0 #9e856e, 30px 60px 0 0 #000000, 40px 60px 0 0 #000000, 50px 60px 0 0 #000000, 60px 60px 0 0 #000000, 70px 60px 0 0 #000000, 80px 60px 0 0 #000000, 90px 60px 0 0 #000000, 100px 60px 0 0 #000000, 110px 60px 0 0 #000000, 120px 60px 0 0 #000000, 130px 60px 0 0 #000000, 140px 60px 0 0 #000000, 150px 60px 0 0 #000000, 20px 70px 0 0 #9e856e, 30px 70px 0 0 #7b5840, 40px 70px 0 0 #e6c1aa, 50px 70px 0 0 #000000, 60px 70px 0 0 #ffffff, 70px 70px 0 0 #356399, 80px 70px 0 0 #ffffff, 90px 70px 0 0 #000000, 100px 70px 0 0 #000000, 110px 70px 0 0 #000000, 120px 70px 0 0 #ffffff, 130px 70px 0 0 #356399, 140px 70px 0 0 #ffffff, 150px 70px 0 0 #000000, 20px 80px 0 0 #9e856e, 30px 80px 0 0 #7b5840, 40px 80px 0 0 #e6c1aa, 50px 80px 0 0 #000000, 60px 80px 0 0 #ffffff, 70px 80px 0 0 #ffffff, 80px 80px 0 0 #ffffff, 90px 80px 0 0 #000000, 100px 80px 0 0 #e6c1aa, 110px 80px 0 0 #000000, 120px 80px 0 0 #ffffff, 130px 80px 0 0 #ffffff, 140px 80px 0 0 #ffffff, 150px 80px 0 0 #000000, 20px 90px 0 0 #9e856e, 30px 90px 0 0 #7b5840, 40px 90px 0 0 #e6c1aa, 50px 90px 0 0 #e6c1aa, 60px 90px 0 0 #000000, 70px 90px 0 0 #000000, 80px 90px 0 0 #000000, 90px 90px 0 0 #e6c1aa, 100px 90px 0 0 #e6c1aa, 110px 90px 0 0 #e6c1aa, 120px 90px 0 0 #000000, 130px 90px 0 0 #000000, 140px 90px 0 0 #000000, 20px 100px 0 0 #9e856e, 30px 100px 0 0 #9e856e, 40px 100px 0 0 #7b5840, 50px 100px 0 0 #e6c1aa, 60px 100px 0 0 #e6c1aa, 70px 100px 0 0 #e6c1aa, 80px 100px 0 0 #e6c1aa, 90px 100px 0 0 #e6c1aa, 100px 100px 0 0 #e6c1aa, 110px 100px 0 0 #e6c1aa, 120px 100px 0 0 #e6c1aa, 130px 100px 0 0 #9e856e, 10px 110px 0 0 #9e856e, 20px 110px 0 0 #9e856e, 30px 110px 0 0 #9e856e, 40px 110px 0 0 #7b5840, 50px 110px 0 0 #7b5840, 60px 110px 0 0 #e6c1aa, 70px 110px 0 0 #e6c1aa, 80px 110px 0 0 #e6c1aa, 90px 110px 0 0 #7b5840, 100px 110px 0 0 #7b5840, 110px 110px 0 0 #7b5840, 120px 110px 0 0 #e6c1aa, 130px 110px 0 0 #9e856e, 10px 120px 0 0 #9e856e, 20px 120px 0 0 #9e856e, 30px 120px 0 0 #9e856e, 40px 120px 0 0 #7b5840, 50px 120px 0 0 #7b5840, 60px 120px 0 0 #7b5840, 70px 120px 0 0 #e6c1aa, 80px 120px 0 0 #7b5840, 90px 120px 0 0 #b56d69, 100px 120px 0 0 #b56d69, 110px 120px 0 0 #b56d69, 120px 120px 0 0 #7b5840, 130px 120px 0 0 #9e856e, 20px 130px 0 0 #9e856e, 30px 130px 0 0 #9e856e, 50px 130px 0 0 #7b5840, 60px 130px 0 0 #7b5840, 70px 130px 0 0 #7b5840, 80px 130px 0 0 #7b5840, 90px 130px 0 0 #7b5840, 100px 130px 0 0 #7b5840, 110px 130px 0 0 #7b5840, 120px 130px 0 0 #7b5840, 130px 130px 0 0 #9e856e, 30px 140px 0 0 #9e856e, 60px 140px 0 0 #7b5840, 70px 140px 0 0 #7b5840, 80px 140px 0 0 #7b5840, 90px 140px 0 0 #7b5840, 100px 140px 0 0 #7b5840, 110px 140px 0 0 #7b5840, 120px 140px 0 0 #7b5840, 80px 150px 0 0 #7b5840, 90px 150px 0 0 #7b5840, 100px 150px 0 0 #7b5840;
}
}

@media only screen 
  and (min-width: 1024px) {

.pixels {
  margin-left: -85px;
       margin-top: -105px;
  
  box-shadow: 60px 10px 0 0 #9e856e, 70px 10px 0 0 #9e856e, 80px 10px 0 0 #9e856e, 90px 10px 0 0 #9e856e, 40px 20px 0 0 #9e856e, 50px 20px 0 0 #9e856e, 60px 20px 0 0 #9e856e, 70px 20px 0 0 #9e856e, 80px 20px 0 0 #9e856e, 90px 20px 0 0 #9e856e, 100px 20px 0 0 #9e856e, 110px 20px 0 0 #9e856e, 120px 20px 0 0 #9e856e, 30px 30px 0 0 #9e856e, 40px 30px 0 0 #9e856e, 50px 30px 0 0 #9e856e, 60px 30px 0 0 #9e856e, 70px 30px 0 0 #9e856e, 80px 30px 0 0 #9e856e, 90px 30px 0 0 #9e856e, 100px 30px 0 0 #9e856e, 110px 30px 0 0 #9e856e, 120px 30px 0 0 #9e856e, 130px 30px 0 0 #9e856e, 20px 40px 0 0 #9e856e, 30px 40px 0 0 #9e856e, 40px 40px 0 0 #9e856e, 50px 40px 0 0 #9e856e, 60px 40px 0 0 #9e856e, 70px 40px 0 0 #9e856e, 80px 40px 0 0 #9e856e, 90px 40px 0 0 #9e856e, 100px 40px 0 0 #9e856e, 110px 40px 0 0 #9e856e, 120px 40px 0 0 #9e856e, 130px 40px 0 0 #9e856e, 20px 50px 0 0 #9e856e, 30px 50px 0 0 #9e856e, 40px 50px 0 0 #9e856e, 50px 50px 0 0 #9e856e, 60px 50px 0 0 #e6c1aa, 70px 50px 0 0 #e6c1aa, 80px 50px 0 0 #e6c1aa, 90px 50px 0 0 #9e856e, 100px 50px 0 0 #e6c1aa, 110px 50px 0 0 #e6c1aa, 120px 50px 0 0 #9e856e, 130px 50px 0 0 #9e856e, 10px 60px 0 0 #9e856e, 20px 60px 0 0 #9e856e, 30px 60px 0 0 #9e856e, 40px 60px 0 0 #9e856e, 50px 60px 0 0 #e6c1aa, 60px 60px 0 0 #e6c1aa, 70px 60px 0 0 #e6c1aa, 80px 60px 0 0 #e6c1aa, 90px 60px 0 0 #e6c1aa, 100px 60px 0 0 #e6c1aa, 110px 60px 0 0 #e6c1aa, 120px 60px 0 0 #e6c1aa, 130px 60px 0 0 #9e856e, 140px 60px 0 0 #9e856e, 10px 70px 0 0 #9e856e, 20px 70px 0 0 #9e856e, 30px 70px 0 0 #9e856e, 40px 70px 0 0 #9e856e, 50px 70px 0 0 #e6c1aa, 60px 70px 0 0 #e6c1aa, 70px 70px 0 0 #e6c1aa, 80px 70px 0 0 #e6c1aa, 90px 70px 0 0 #e6c1aa, 100px 70px 0 0 #e6c1aa, 110px 70px 0 0 #e6c1aa, 120px 70px 0 0 #e6c1aa, 130px 70px 0 0 #9e856e, 140px 70px 0 0 #9e856e, 10px 80px 0 0 #9e856e, 20px 80px 0 0 #000000, 30px 80px 0 0 #000000, 40px 80px 0 0 #000000, 50px 80px 0 0 #000000, 60px 80px 0 0 #000000, 70px 80px 0 0 #000000, 80px 80px 0 0 #000000, 90px 80px 0 0 #000000, 100px 80px 0 0 #000000, 110px 80px 0 0 #000000, 120px 80px 0 0 #000000, 130px 80px 0 0 #000000, 140px 80px 0 0 #000000, 150px 80px 0 0 #000000, 10px 90px 0 0 #9e856e, 20px 90px 0 0 #9e856e, 30px 90px 0 0 #9e856e, 40px 90px 0 0 #e6c1aa, 50px 90px 0 0 #000000, 60px 90px 0 0 #ffffff, 70px 90px 0 0 #356399, 80px 90px 0 0 #ffffff, 90px 90px 0 0 #000000, 100px 90px 0 0 #000000, 110px 90px 0 0 #000000, 120px 90px 0 0 #ffffff, 130px 90px 0 0 #356399, 140px 90px 0 0 #ffffff, 150px 90px 0 0 #000000, 10px 100px 0 0 #9e856e, 20px 100px 0 0 #e6c1aa, 30px 100px 0 0 #7b5840, 40px 100px 0 0 #e6c1aa, 50px 100px 0 0 #000000, 60px 100px 0 0 #ffffff, 70px 100px 0 0 #ffffff, 80px 100px 0 0 #ffffff, 90px 100px 0 0 #000000, 100px 100px 0 0 #e6c1aa, 110px 100px 0 0 #000000, 120px 100px 0 0 #ffffff, 130px 100px 0 0 #ffffff, 140px 100px 0 0 #ffffff, 150px 100px 0 0 #000000, 10px 110px 0 0 #9e856e, 20px 110px 0 0 #e6c1aa, 30px 110px 0 0 #7b5840, 40px 110px 0 0 #e6c1aa, 50px 110px 0 0 #e6c1aa, 60px 110px 0 0 #000000, 70px 110px 0 0 #000000, 80px 110px 0 0 #000000, 90px 110px 0 0 #e6c1aa, 100px 110px 0 0 #e6c1aa, 110px 110px 0 0 #e6c1aa, 120px 110px 0 0 #000000, 130px 110px 0 0 #000000, 140px 110px 0 0 #000000, 10px 120px 0 0 #9e856e, 20px 120px 0 0 #e6c1aa, 30px 120px 0 0 #7b5840, 40px 120px 0 0 #e6c1aa, 50px 120px 0 0 #e6c1aa, 60px 120px 0 0 #e6c1aa, 70px 120px 0 0 #e6c1aa, 80px 120px 0 0 #e6c1aa, 90px 120px 0 0 #e6c1aa, 100px 120px 0 0 #e6c1aa, 110px 120px 0 0 #e6c1aa, 120px 120px 0 0 #e6c1aa, 130px 120px 0 0 #9e856e, 140px 120px 0 0 #9e856e, 20px 130px 0 0 #9e856e, 30px 130px 0 0 #9e856e, 40px 130px 0 0 #7b5840, 50px 130px 0 0 #e6c1aa, 60px 130px 0 0 #e6c1aa, 70px 130px 0 0 #e6c1aa, 80px 130px 0 0 #e6c1aa, 90px 130px 0 0 #7b5840, 100px 130px 0 0 #7b5840, 110px 130px 0 0 #7b5840, 120px 130px 0 0 #e6c1aa, 130px 130px 0 0 #9e856e, 140px 130px 0 0 #9e856e, 10px 140px 0 0 #9e856e, 20px 140px 0 0 #9e856e, 30px 140px 0 0 #9e856e, 40px 140px 0 0 #7b5840, 50px 140px 0 0 #7b5840, 60px 140px 0 0 #e6c1aa, 70px 140px 0 0 #e6c1aa, 80px 140px 0 0 #7b5840, 90px 140px 0 0 #b56d69, 100px 140px 0 0 #b56d69, 110px 140px 0 0 #b56d69, 120px 140px 0 0 #7b5840, 130px 140px 0 0 #9e856e, 140px 140px 0 0 #9e856e, 10px 150px 0 0 #9e856e, 20px 150px 0 0 #9e856e, 30px 150px 0 0 #9e856e, 40px 150px 0 0 #7b5840, 50px 150px 0 0 #7b5840, 60px 150px 0 0 #7b5840, 70px 150px 0 0 #7b5840, 80px 150px 0 0 #7b5840, 90px 150px 0 0 #e6c1aa, 100px 150px 0 0 #e6c1aa, 110px 150px 0 0 #e6c1aa, 120px 150px 0 0 #7b5840, 130px 150px 0 0 #9e856e, 20px 160px 0 0 #9e856e, 30px 160px 0 0 #9e856e, 50px 160px 0 0 #7b5840, 60px 160px 0 0 #7b5840, 70px 160px 0 0 #7b5840, 80px 160px 0 0 #7b5840, 90px 160px 0 0 #7b5840, 100px 160px 0 0 #7b5840, 110px 160px 0 0 #7b5840, 120px 160px 0 0 #7b5840, 130px 160px 0 0 #9e856e, 30px 170px 0 0 #9e856e, 60px 170px 0 0 #7b5840, 70px 170px 0 0 #7b5840, 80px 170px 0 0 #7b5840, 90px 170px 0 0 #7b5840, 100px 170px 0 0 #7b5840, 110px 170px 0 0 #7b5840, 120px 170px 0 0 #7b5840, 70px 180px 0 0 #7b5840, 80px 180px 0 0 #7b5840, 90px 180px 0 0 #7b5840, 100px 180px 0 0 #7b5840, 110px 180px 0 0 #7b5840, 80px 190px 0 0 #7b5840, 90px 190px 0 0 #7b5840, 100px 190px 0 0 #7b5840;

}
}
              
            
!

JS

              
                
              
            
!
999px

Console