css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="container">
<h1>MathJax Font Check</h1>
<div id="none">
You do not appear to have the MathJax fonts installed. MathJax should 
work for you using web-based fonts. You can download the fonts from the <a href="https://cdn.mathjax.org/mathjax/contrib/MathJax-TeX-fonts-otf.zip">MathJax CDN</a>.
<div id="old">
You have old versions of the MathJax fonts installed on your system.  
Version 2.6 of MathJax introduced new versions for use with the new 
CommonHTML output format.  The old versions may cause positioning problems 
in some equations and some browsers, so you should either remove the old 
versions or update to new ones. The new fonts can be found on the 
<a href="https://cdn.mathjax.org/mathjax/contrib/MathJax-TeX-fonts-otf.zip">MathJax CDN</a>.
<div id="new">
Congratulations, you have the new versions of the MathJax fonts installed on your system. These should work fine with any version of MathJax.
              #none { background-color: #d9edf7; display:none;}
#old { background-color: #f2dede; display:none;}
#new { background-color: #dff0d8; display:none;}

*, ::after, ::before {
  box-sizing: border-box;
html {
  font-family: sans-serif;
  font-size: 10px;
  -webkit-tap-highlight-color: transparent;
body {
  margin: 0px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: rgb(51, 51, 51);
  background-color: rgb(255, 255, 255);
  padding-top: 50px;
  padding-bottom: 20px;
  margin-right: auto;
  margin-left: auto;
  width: 80vw;
a {
  color: rgb(22, 149, 56);
  text-decoration: none;
  background-color: transparent;
a, a:focus, a:hover {
  text-decoration: none;
h1 {
  margin: 0.67em 0px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 24px;
              (function() {
  var styles = [
    "@font-face {",
    "  font-family: 'MJX_Blank';",
    "  src: url('data:application/font-woff;charset=utf-8;base64,d09GRk9UVE8AAAWgAAoAAAAACiwAAA" +
    "FxhmTAsSN7ksCmX9APqPoFXXbZVdVFv6LLLrrvH/R4PBRS+lAfsTxzfOfec8/cOxMiemDlyKLkt0Rtgy3K0iuDp2iW" +
    "3ho8TY+sewan6L71zOA03bVeGDwD+weDs/Rl+p3BOVpIfTZ4jrLphwbP02z6KZit1B18HeosMbZogZ4bPIXo1wZP0w" +
    "69NzhFeaticBp7UQbPwP7S4Kz1yfpocI6epN4YPEcLacvgecqlH9MmBTSgSwpJUpd6pIhpkVzUhalCJSrTClAbKwLz" +
    "Ljnw6EGNQxf4jqN9ijCGsEsaUp9oMxhchrLbU7zoLnGlVF7hdk/wrqN6O84FbwZ+FIRKDuE6yXdMG+QB+XSOpcT9eM" +
    "Nz/PO4RgL6hno9xKfoDj0HoK4VKD2H8BBatw3lTNVbim9mWP6esx74qh6EXcEVu8RVnlCw/C3jHzD+hOEIXiGqJrV2" +
    "Ro1tvHQkwkgGPpft8v/I8rvOlmgVXEmPS1SAdQu8kfaOVbXgK2HxMQu93tDY1jxrNNaPjY4nSs+0Utv0YR15CpSBh9" +
    "SrrFVHeucjjB1YrnrHtIfYvu5dHriG3W8D2YjP6LMnEXnTvwV0CjTWFYjjEg8Ps6s1RybHELijs7LWIXR0g5qY91Ef" +
    "ofd6zdycYIh3/eNu2RPKJvMyVI3wSt2hE4yx7boSjs5YowONFc5pRvdHQU+VingisMV9G8AWIVekua5qW4TyOpTeum" +
    "ml1WVct1KBt0Qkuz63XCl8VxS44bs2L66Nx2O7j9Ny5lzYOOjrS4XMWKoeH4pIhCPR4fgK8J7TF5zfq+1u5+1Mpt2T" +
    "UWJvBadq7ISCYfCkK/wIEUO/I0JWuN+tRpP3B8JPnJuJQ4FvnGo7ITOx7Iwc6TknnmAtwuF67YAdVc30lBpUi8XIDe" +
    "VARXYkvVhtcb+OLf9VnX5F+M9/QV8B1iA8ewAAAHjaY2BgYGaAYBkGRgYQcAHyGMF8FgYNIM0GpBkZmBgU3v///x/I" +
    "B9P/HwowQ9UDASMbA4KDAxCSH+oAAOZaCtZ42mNgZgCD/80MRgxYAAAoRAG4AHjaY2RgYWFgZGQU800syfBKrIh3yk" +
    "0rxMVzc3N+f8gsqizPSMEgWNZE0FIwNDU4WQjFQFqG0Kzvl5xflFJZmluVjtRxFkAAJGxnYGZkZGJmYWPj6+bpFuUT" +
    "') format('woff')",
    ".MJX-CHTML-font-test {",
    "  font-family: MathJax_Size1,MathJax_Size1-Regular, MJX_Blank;",
    "  font-size: 300%;",
    "  position:absolute; top:0; left:0; visibility:hidden;",

  var sheet = document.createElement("style");
  sheet.type = "text/css";
  var head = document.head || document.getElementsByTagName("head")[0] || document.firstChild;
  if (sheet.styleSheet && typeof(sheet.styleSheet.cssText) !== 'undefined') {
    sheet.styleSheet.cssText = styles;
  } else {

  var div1 = document.createElement("div");
  div1.className = "MJX-CHTML-font-test";
  div1.innerHTML = "\uEFFF";

  var div2 = document.createElement("div");
  div2.className = "MJX-CHTML-font-test";
  div2.innerHTML = "\uEFFE";

  var ONLOAD = function() {
    setTimeout(function() {
      var w1 = div1.offsetWidth,
        w2 = div2.offsetWidth;
      var version = (w1 === 0 ? 0 : Math.floor(w2 / w1 + 1.5) / 2);
      console.log("MathJax font version = " + version);
      document.getElementById(version ? (version < 3 ? "old" : "new") : "none").style.display = "block";
    }, 50);

  if (window.addEventListener) window.addEventListener("load", ONLOAD, false);
  else if (window.attachEvent) window.attachEvent("onload", ONLOAD);
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................