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="frame">
  <div class="container">
    <div class="one dark-maroon"></div>
    <div class="two salmon"></div>
    <div class="three maroon"></div>
    <div class="four light-salmon"></div>
    <div class="five maroon"></div>
    <div class="six salmon"></div>
    <div class="seven salmon"></div>
    <div class="eight salmon"></div>
    <div class="nine maroon"></div>
    <div class="ten white"></div>
    <div class="eleven white"></div>
    <div class="twelve maroon"></div>
    <div class="thirteen salmon"></div>
    <div class="fourteen white"></div>
    <div class="fifteen white"></div>
    <div class="sixteen salmon"></div>
    <div class="seventeen maroon"></div>
    <div class="eighteen"></div>
    <div class="nineteen"></div>
    <div class="twenty maroon"></div>
    <div class="twenty-one"></div>
    <div class="twenty-two"></div>
    <div class="twenty-three salmon"></div>
    <div class="twenty-four maroon"></div>
    <div class="twenty-five white"></div>
    <div class="twenty-six maroon"></div>
    <div class="twenty-seven maroon"></div>
    <div class="twenty-eight light-salmon"></div>
    <div class="twenty-nine"></div>
    <div class="thirty white"></div>
    <div class="thirty-one maroon"></div>
    <div class="thirty-two salmon"></div>
    <div class="thirty-three salmon"></div>
    <div class="thirty-four white"></div>
    <div class="thirty-five salmon"></div>
    <div class="thirty-six salmon"></div>
    <div class="thirty-seven maroon"></div>
    <div class="thirty-eight light-salmon"></div>
    <div class="thirty-nine salmon"></div>
    <div class="fourty"></div>
    <div class="fourty-one"></div>
    <div class="fourty-two white"></div>
    <div class="fourty-three maroon"></div>
    <div class="fourty-four salmon"></div>
    <div class="fourty-five"></div>
    <div class="fourty-six maroon"></div>
    <div class="fourty-seven maroon"></div>
    <div class="fourty-eight dark-maroon"></div>
    <div class="fourty-nine maroon"></div>
  </div>
</div>
              
            
!

CSS

              
                :root {
  --maroon: #713C46;
  --dark-maroon: #462C2F;
  --salmon: #E16C5B;
  --light-salmon: #FFC8B4;
  --white: #FFFFFF;
  --black: #171314;
}

body {
  background: rgb(113,60,70);
background: linear-gradient(138deg, rgba(113,60,70,1) 0%, rgba(255,200,180,1) 100%);
}

.frame {
  display: grid;
  justify-content: center;
}

.container {
  background: var(--white);
  width: 700px;
  height: 960px;
  -webkit-box-shadow: 8px 10px 28px -5px rgba(0, 0, 0, 0.36);
  -moz-box-shadow: 8px 10px 28px -5px rgba(0, 0, 0, 0.36);
  box-shadow: 8px 10px 28px -5px rgba(0, 0, 0, 0.36);
  display: grid;
  grid-template-columns: repeat(35, 20px);
  grid-template-rows: repeat(46, 20px);
}

.maroon {
  background: var(--maroon);
}

.dark-maroon {
  background: var(--dark-maroon);
}

.salmon {
  background: var(--salmon);
}

.light-salmon {
  background: var(--light-salmon);
}

.white {
  background: var(--white);
}

.black {
  background: var(--black);
}

.one {
  grid-column: 3 / span 31;
  grid-row: 5 / span 40;
}

.two {
  grid-column: 6 / span 5;
  grid-row: 8 / span 3;
}

.three {
  grid-column: 6 / span 5;
  grid-row: 11 / span 3;
}

.four {
  grid-column: 9 / span 6;
  grid-row: 14 / span 2;
}

.five {
  grid-column: 9;
  grid-row: 16 / span 3;
}

.six {
  grid-column: 14;
  grid-row: 16 / span 3;
}

.seven {
  grid-column: 15 / span 6;
  grid-row: 11 / span 6;
}

.eight {
  grid-column: 25;
  grid-row: 8;
  border-radius: 100%;
}

.nine {
  grid-column: 25;
  grid-row: 9;
  border-radius: 100%;
}

.ten {
  grid-column: 25;
  grid-row: 10;
  border-radius: 100%;
}

.eleven {
  grid-column: 28;
  grid-row: 10 / span 7;
  position: relative;
  left: 3px;
}

.twelve {
  grid-column: 31;
  grid-row: 10 / span 5;
}

.thirteen {
  grid-column: 31;
  grid-row: 15 / span 14;
}

.fourteen {
  grid-column: 9 / span 4;
  grid-row: 21 / span 3;
  width: 80px;
    height: 40px; /* as the half of the width */
    background-color: var(--white);
    border-top-left-radius: 180px;
    border-top-right-radius: 180px;
    border-bottom: 0;
}

.fifteen {
  grid-column: 21;
  grid-row: 13 / span 10;
  transform: skewX(-40deg);
}

.sixteen {
  grid-column: 23;
  grid-row: 13 / span 10;
  transform: skewX(-40deg);
}

.seventeen {
  grid-column: 23 / span 5;
  grid-row: 17 / span 6;
  transform: skewX(-40deg);
  position: relative;
  right: 13px;
}

.eighteen {
  grid-column: 5;
  grid-row: 23;
      width: 0;
      height: 0;
      border-bottom: 100px solid var(--salmon);
      border-left: 100px solid transparent;
}

.nineteen {
  grid-column: 13 / span 4;
  grid-row: 23 / span 3;
  width: 80px;
    height: 40px; /* as the half of the width */
    background-color: var(--maroon);
    border-bottom-left-radius: 180px;
    border-bottom-right-radius: 180px;
    border-bottom: 0;
}

.twenty {
  grid-column: 15 / span 5;
  grid-row: 23 / span 5;
}

.twenty-one {
  grid-column: 17 / span 4;
  grid-row: 23 / span 3;
  width: 80px;
    height: 40px; /* as the half of the width */
    background-color: var(--salmon);
    border-bottom-left-radius: 180px;
    border-bottom-right-radius: 180px;
    border-bottom: 0;
}

.twenty-two {
  grid-column: 20;
  grid-row: 23;
      width: 0;
      height: 0;
      border-bottom: 100px solid var(--salmon);
      border-left: 100px solid transparent;
}

.twenty-three {
  grid-column: 26 / span 2;
  grid-row: 26 / span 2;
  border-radius: 100%;
}

.twenty-four {
  grid-column: 26 / span 2;
  grid-row: 28 / span 2;
  border-radius: 100%;
}

.twenty-five {
  grid-column: 26 / span 2;
  grid-row: 30 / span 2;
  border-radius: 100%;
}

.twenty-six {
  grid-column: 6 / span 5;
  grid-row: 28 / span 5;
}

.twenty-seven {
  grid-column: 13;
  grid-row: 28 / span 5;
}

.twenty-eight {
  grid-column: 14;
  grid-row: 28 / span 5;
}

.twenty-nine {
  grid-column: 20;
  grid-row: 28;
      width: 0;
      height: 0;
      border-bottom: 100px solid var(--white);
      border-left: 100px solid transparent;
}

.thirty {
  grid-column: 12;
  grid-row: 28 / span 8;
  transform: skewX(-40deg);
  position: relative;
  right: 6px;
}

.thirty-one {
  grid-column: 15 / span 5;
  grid-row: 28 / span 3;
}

.thirty-two {
  grid-column: 16;
  grid-row: 31 / span 2;
}

.thirty-three {
  grid-column: 13;
  grid-row: 31 / span 5;
  transform: skewX(-40deg);
  position: relative;
  right: 6px;
}

.thirty-four {
  grid-column: 6 / span 5;
  grid-row: 36 / span 3;
}

.thirty-five {
  grid-column: 6 / span 5;
  grid-row: 39 / span 3;
}

.thirty-six {
  grid-column: 15 / span 5;
  grid-row: 33 / span 9;
}

.thirty-seven {
  grid-column: 25;
  grid-row: 33 / span 6;
}

.thirty-eight {
  grid-column: 26;
  grid-row: 33 / span 3;
}

.thirty-nine {
  grid-column: 28;
  grid-row: 33 / span 6;
}

.fourty {
 grid-column: 7 / span 3;
  grid-row: 38 / span 3;
  width: 60px;
    height: 30px; /* as the half of the width */
    background-color: var(--salmon);
    border-top-left-radius: 180px;
    border-top-right-radius: 180px;
    border-bottom: 0; 
}

.fourty-one {
  grid-column: 15;
  grid-row: 37;
  width: 0;
      height: 0;
      border-bottom: 100px solid var(--maroon);
      border-right: 100px solid transparent;
}

.fourty-two {
  grid-column: 28;
  grid-row: 41;
  border-radius: 100%;
}

.fourty-three {
  grid-column: 29;
  grid-row: 41;
  border-radius: 100%;
}

.fourty-four {
  grid-column: 30;
  grid-row: 41;
  border-radius: 100%;
}

.fourty-five {
  grid-column: 31;
  grid-row: 14;
  width: 0;
      height: 0;
      border-bottom: 20px solid var(--salmon);
      border-right: 20px solid transparent;
}

.fourty-six {
   grid-column: 18;
  grid-row: 11 / span 6;
  transform: skewX(-40deg);
  position: relative;
  right: 10px;
}

.fourty-seven {
   grid-column: 20;
  grid-row: 11 / span 6;
  transform: skewX(-40deg);
  position: relative;
  right: 10px;
}

.fourty-eight {
  grid-column: 21 / span 2;
  grid-row: 11 / span 3;
  z-index: 1;
}

.fourty-nine {
  grid-column: 7;
  grid-row: 10;
  width: 60px;
    height: 30px; /* as the half of the width */
    background-color: var(--maroon);
    border-top-left-radius: 180px;
    border-top-right-radius: 180px;
    border-bottom: 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console