Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!-- key -->
<div>
  <p>White Square <span class="mac-key-white">&#x21E7;</span> + <span class="mac-key-white">&#x2318;</span> + <span class="mac-key-white">m</span>
  </p>

  <p>Black Square <span class="mac-key-black">&#x21E7;</span> + <span class="mac-key-black">&#x2318;</span> + <span class="mac-key-black">m</span>
  </p>

  <p>White Rectangle <span class="mac-key-shift-white">shift &#x21E7;</span> + <span class="mac-key-command-white">command &#x2318;</span> + <span class="mac-key-return-white">return &#x23ce;</span>
  </p>

  <p>Black Rectangle <span class="mac-key-shift-black">shift &#x21E7;</span> + <span class="mac-key-command-black">command &#x2318;</span> + <span class="mac-key-return-black">return &#x23ce;</span>
  </p>
  
  <p>Black Arrow <span class="mac-key-arrow-black-long">left &#x25C0;</span> , <span class="mac-key-arrow-black">&#x25B2;</span>
  </p>
  
  <p>Black Arrow <span class="mac-key-arrow-black-long">left  &#x2190;</span> , <span class="mac-key-arrow-black">&#x2191;</span>
  </p>
  
</div>

<!-- unicode表 -->
<div align="center" valign="middle">
  <table width="600" border="1" cellspacing="0">
    <tr>
      <th bgcolor="#b0c4de">記号</th>
      <th bgcolor="#b0c4de">日本語</th>
      <th bgcolor="#b0c4de">HTMLコード</th>
    </tr>
    <tr>
      <td class="td1">&#x2318;</td>
      <td class="td2">コマンド</td>
      <td>&#38;&#35;&#120;&#50;&#51;&#49;&#56;&#59;</td>
    </tr>
    <tr>
      <td>&#x2325;</td>
      <td>オプション</td>
      <td>&#38;&#35;&#120;&#50;&#51;&#50;&#53;&#59;</td>
    </tr>
    <tr>
      <td>&#x21E7;</td>
      <td>シフト</td>
      <td>&#38;&#35;&#120;&#50;&#49;&#69;&#55;&#59;</td>
    </tr>
    <tr>
      <td>&#x238B;</td>
      <td>エスケープ</td>
      <td>&#38;&#35;&#120;&#50;&#51;&#56;&#66;&#59;</td>
    </tr>
    <tr>
      <td>&#x232b;</td>
      <td>デリート</td>
      <td>&#38;&#35;&#120;&#50;&#51;&#50;&#98;&#59;</td>
    </tr>
    <tr>
      <td>&#x23ce;</td>
      <td>リターン</td>
      <td>&#38;&#35;&#120;&#50;&#51;&#99;&#101;&#59;</td>
    </tr>
    <tr>
      <td>&#x21ea;</td>
      <td>キャプスロック</td>
      <td>&#38;&#35;&#120;&#50;&#49;&#101;&#97;&#59;</td>
    </tr>
    <tr>
      <td>&#x232b;</td>
      <td>バックスペース</td>
      <td>&#38;&#35;&#48;&#120;&#50;&#51;&#50;&#54;&#59;</td>
    </tr>
    <tr>
      <td>&#x2190;</td>
      <td>左矢印</td>
      <td>&#38;&#35;&#120;&#50;&#49;&#57;&#48;&#59;</td>
    </tr>
    <tr>
      <td>&#x2192;</td>
      <td>右矢印</td>
      <td>&#38;&#35;&#120;&#50;&#49;&#57;&#50;&#59;</td>
    </tr>
    <tr>
      <td>&#x2191;</td>
      <td>上矢印</td>
      <td>&#38;&#35;&#120;&#50;&#49;&#57;&#49;&#59;</td>
    </tr>
    <tr>
      <td>&#x2193;</td>
      <td>下矢印</td>
      <td>&#38;&#35;&#120;&#50;&#49;&#57;&#51;&#59;</td>
    </tr>
    <tr>
      <td>&#x25C0;</td>
      <td>黒三角左矢印</td>
      <td>&#38;&#35;&#120;&#50;&#53;&#67;&#48;&#59;</td>
    </tr>
    <tr>
      <td>&#x25B6;</td>
      <td>黒三角右矢印</td>
      <td>&#38;&#35;&#120;&#50;&#53;&#66;&#54;&#59;</td>
    </tr>
    <tr>
      <td>&#x25B2;</td>
      <td>黒三角上矢印</td>
      <td>&#38;&#35;&#120;&#50;&#53;&#66;&#50;&#59;</td>
    </tr>
    <tr>
      <td>&#x25BC;</td>
      <td>黒三角下矢印</td>
      <td>&#38;&#35;&#120;&#50;&#53;&#66;&#67;&#59;</td>
    </tr>
    <tr>
      <td>&#xf8ff;</td>
      <td>Appleロゴマーク</td>
      <td>&#38;&#35;&#120;&#102;&#56;&#102;&#102;&#59;</td>
    </tr>
  </table>
</div>
              
            
!

CSS

              
                body {
  padding:20px;
  height:100%;
  font: 20px Helvetica, serif;
  color: #555;
}
 
.mac-key-white {
  /*Box Properties*/
  display:inline-block;
  width:48px;
  height:48px;
  margin: 0px 4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/48px Helvetica,-apple-system, Sans-Serif  ;
  text-transform: uppercase; /*大文字固定*/
  text-align: center;
  color: #666;
}

.mac-key-black {
  /*Box Properties*/
  display:inline-block;
  width:48px;
  height:48px;
  margin: 0px 4px;
  background: #222222;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/48px Helvetica,-apple-system, Sans-Serif  ;
  text-transform: uppercase; /*大文字固定*/
  text-align: center;
  color: #AAAAAA;
}

.mac-key-shift-white {
  /*Box Properties*/
  display:inline-block;
  width:90px;
  height:48px;
  margin: 0px 4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/48px -apple-system, 'BlinkMacSystemFont',Sans-Serif ;
  text-align: center;
  color: #666;
}

.mac-key-shift-black {
  /*Box Properties*/
  display:inline-block;
  width:90px;
  height:48px;
  margin: 0px 4px;
  background: #222222;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/48px -apple-system, 'BlinkMacSystemFont',Sans-Serif ;
  text-align: center;
  color: #AAAAAA;
}

.mac-key-command-white {
  /*Box Properties*/
  display:inline-block;
  width:130px;
  height:48px;
  margin: 0px 4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/48px -apple-system, 'BlinkMacSystemFont',Sans-Serif ;
  text-align: center;
  color: #666;
}

.mac-key-command-black {
  /*Box Properties*/
  display:inline-block;
  width:130px;
  height:48px;
  margin: 0px 4px;
  background: #222222;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/48px -apple-system, 'BlinkMacSystemFont',Sans-Serif ;
  text-align: center;
  color: #AAAAAA;
}

.mac-key-return-white {
  /*Box Properties*/
  display:inline-block;
  width:100px;
  height:48px;
  margin: 0px 4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/48px -apple-system, 'BlinkMacSystemFont',Sans-Serif ;
  text-align: center;
  color: #666;
}

.mac-key-return-black {
  /*Box Properties*/
  display:inline-block;
  width:100px;
  height:48px;
  margin: 0px 4px;
  background: #222222;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/48px -apple-system, 'BlinkMacSystemFont',Sans-Serif ;
  text-align: center;
  color: #AAAAAA;
}

.mac-key-arrow-black-long {
  /*Box Properties*/
  display:inline-block;
  width:80px;
  height:35px;
  margin: 0px 4px;
  background: #222222;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/35px -apple-system, 'BlinkMacSystemFont',Sans-Serif ;
  text-align: center;
  color: #AAAAAA;
}

.mac-key-arrow-black {
  /*Box Properties*/
  display:inline-block;
  width:65px;
  height:35px;
  margin: 0px 4px;
  background: #222222;
  border-radius: 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
/*Text Properties*/
  font: 18px/35px Helvetica,-apple-system, Sans-Serif  ;
  text-align: center;
  color: #AAAAAA;
}

.td1 {
  /*table一番左の列のwidthの比率*/
  width: 20%;	
}

.td2 {
  /*tableの真ん中の列のwidthの比率*/
  width: 35%;	
}

.td3 {
  /*ここは未指定で全体の余りの45%になる*/	
}




              
            
!

JS

              
                

              
            
!
999px

Console