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

              
                <div class="board">

  <!-- Row 1 -->
  <div class="grid-square triple-word">Triple Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-word">Triple Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-word">Triple Word Score</div>

  <!-- Row 2 -->
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>

  <!-- Row 3 -->
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>

  <!-- Row 4 -->
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>

  <!-- Row 5 -->
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>

  <!-- Row 6 -->
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>

  <!-- Row 7 -->
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>

  <!-- Row 8 -->
  <div class="grid-square triple-word">Triple Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square star-square"><i class="fas fa-star"></i></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-word">Triple Word Score</div>

  <!-- Row 9 -->
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>

  <!-- Row 10 -->
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>

  <!-- Row 11 -->
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>

  <!-- Row 12 -->
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>

  <!-- Row 13 -->
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>

  <!-- Row 14 -->
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-letter">Triple Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-word">Double Word Score</div>
  <div class="grid-square"></div>

  <!-- Row 15 -->
  <div class="grid-square triple-word">Triple Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-word">Triple Word Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square double-letter">Double Letter Score</div>
  <div class="grid-square"></div>
  <div class="grid-square"></div>
  <div class="grid-square triple-word">Triple Word Score</div>
</div>
              
            
!

CSS

              
                body {
  background: #454545;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.board {
  position: relative;
  bottom: 200px;
  max-width: 800px;
  margin: auto;
  border-radius: 3px;
  border-left: 5px solid #aaa;
  border-bottom: 5px solid #656565;
  background: #fff;

  display: grid;
  grid-template-columns: repeat(15, 50px);
  grid-template-rows: repeat(15, 50px);
  grid-gap: 3px;

  transform: perspective(600px) rotateX(70deg) rotateZ(-45deg) scale(0.7);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.grid-square {
  display: flex;
  justify-content: center;
  align-items: center;
  font: 700 10px "Helvetica";
  background: #efece1;
  text-align: center;
  box-shadow: inset 0 1px 5px -2px rgba(0, 0, 0, 0.2),
    inset 1px -2px 4px -1px rgba(0, 0, 0, 0.2);
}

.triple-word {
  background: #fe704d;
}

.double-word {
  background: rgba(254, 112, 77, 0.4);
}

.triple-letter {
  background: #0493b5;
}

.double-letter {
  background: rgba(4, 147, 181, 0.4);
}

.star-square {
  background: rgba(254, 112, 77, 0.4);
}

.fa-star {
  font-size: 25px;
}

              
            
!

JS

              
                
              
            
!
999px

Console