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

              
                <!--

Tufte CSS style footnotes, minimum viable markup:

<input id="fn1" type="checkbox">
<label for="fn1">1</label>
<small>Footnote text</small>

This is just a test, so unlike the original, they're not really accessible. #3 would be best for touchscreens, as clicking anywhere else closes the popup note.

-->

<p class="inline">(…) The lack of a clear definition of the word allowed it to be appropriated as a placeholder word in computer programming,<input id="i1" type="checkbox"><label for="i1">1</label><small>

    Bautts, T., Dawson, T. & Purdy G. (2005) <em>Linux Network Administrator's Guide</em>. O'Reilly, p. 64. ISBN 9780596005481

  </small> particularly by those with ties to <em>Discordianism</em> or the <em>Church of the SubGenius</em>.<input id="i2" type="checkbox"><label for="i2">2</label><small>

    Raymond, Eric S. (1996) <em>The New Hacker's Dictionary</em>. MIT Press, p. 196. ISBN 9780262680929

  </small> It has also been found useful as the name for a “techno cultural” conference,<input id="i3" type="checkbox"><label for="i3">3</label><small>

    FNORD 2014, Northern India Engineering College, Delhi, Techno Cultural Festival, Delhi, March 5-7 2014

  </small> computer programs,<input id="i4" type="checkbox"><label for="i4">4</label><small>

    Richard Raucci (1 January 1997). <em>A Windows NTTM Guide to the Web: Covering Browsers, Servers, and Related Software</em>. Taylor & Francis. p. 50. ISBN 978-0-387-94792-1

  </small> and as a general placeholder word in computing literature.<input id="i5" type="checkbox"><label for="i5">5</label><small>

    Claudia Linnhoff-Popien; Heinz-Gerd Hegering (1 September 2000). <em>Trends in Distributed Systems: Towards a Universal Service Market: Third International IFIP/GI Working Conference, USM 2000 Munich, Germany, September 12-14, 2000 Proceedings</em>. Springer. p. 62. ISBN 978-3-540-41024-9

  </small></p>

<p class="block">(…) The lack of a clear definition of the word allowed it to be appropriated as a placeholder word in computer programming,<input id="b1" type="checkbox"><label for="b1">1</label><small>

    Bautts, T., Dawson, T. & Purdy G. (2005) <em>Linux Network Administrator's Guide</em>. O'Reilly, p. 64. ISBN 9780596005481

  </small> particularly by those with ties to <em>Discordianism</em> or the <em>Church of the SubGenius</em>.<input id="b2" type="checkbox"><label for="b2">2</label><small>

    Raymond, Eric S. (1996) <em>The New Hacker's Dictionary</em>. MIT Press, p. 196. ISBN 9780262680929

  </small> It has also been found useful as the name for a “techno cultural” conference,<input id="b3" type="checkbox"><label for="b3">3</label><small>

    FNORD 2014, Northern India Engineering College, Delhi, Techno Cultural Festival, Delhi, March 5-7 2014

  </small> computer programs,<input id="b4" type="checkbox"><label for="b4">4</label><small>

    Richard Raucci (1 January 1997). <em>A Windows NTTM Guide to the Web: Covering Browsers, Servers, and Related Software</em>. Taylor & Francis. p. 50. ISBN 978-0-387-94792-1

  </small> and as a general placeholder word in computing literature.<input id="b5" type="checkbox"><label for="b5">5</label><small>

    Claudia Linnhoff-Popien; Heinz-Gerd Hegering (1 September 2000). <em>Trends in Distributed Systems: Towards a Universal Service Market: Third International IFIP/GI Working Conference, USM 2000 Munich, Germany, September 12-14, 2000 Proceedings</em>. Springer. p. 62. ISBN 978-3-540-41024-9

  </small></p>

<p class="hover">(…) The lack of a clear definition of the word allowed it to be appropriated as a placeholder word in computer programming,<input id="h1" type="checkbox"><label for="h1">1</label><small>

    Bautts, T., Dawson, T. & Purdy G. (2005) <em>Linux Network Administrator's Guide</em>. O'Reilly, p. 64. ISBN 9780596005481

  </small> particularly by those with ties to <em>Discordianism</em> or the <em>Church of the SubGenius</em>.<input id="h2" type="checkbox"><label for="h2">2</label><small>

    Raymond, Eric S. (1996) <em>The New Hacker's Dictionary</em>. MIT Press, p. 196. ISBN 9780262680929

  </small> It has also been found useful as the name for a “techno cultural” conference,<input id="h3" type="checkbox"><label for="h3">3</label><small>

    FNORD 2014, Northern India Engineering College, Delhi, Techno Cultural Festival, Delhi, March 5-7 2014

  </small> computer programs,<input id="h4" type="checkbox"><label for="h4">4</label><small>

    Richard Raucci (1 January 1997). <em>A Windows NTTM Guide to the Web: Covering Browsers, Servers, and Related Software</em>. Taylor & Francis. p. 50. ISBN 978-0-387-94792-1

  </small> and as a general placeholder word in computing literature.<input id="h5" type="checkbox"><label for="h5">5</label><small>

    Claudia Linnhoff-Popien; Heinz-Gerd Hegering (1 September 2000). <em>Trends in Distributed Systems: Towards a Universal Service Market: Third International IFIP/GI Working Conference, USM 2000 Munich, Germany, September 12-14, 2000 Proceedings</em>. Springer. p. 62. ISBN 978-3-540-41024-9

  </small></p>
              
            
!

CSS

              
                p input {
  display: none;
}

/* Sup text */
p input + label {
  font: 0.7em / 1 system-ui, sans-serif;
  vertical-align: super;
  cursor: pointer;
  transition: color 0.1s;
}

p input + label:before {
  content: "[";
}

p input + label:after {
  content: "]";
}

p input + label:hover {
  color: #838374;
}

/* Footnote text */

small {
  color: #838374;
  font-size: 0.875em;
  font-family: IBM Plex Sans, sans-serif;
}

p input + label + small {
  transition: opacity 0.2s 0.05s;
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

p input:checked + label + small {
  position: relative;
  opacity: 1;
  visibility: visible;
}

/******* Flavors *******/

/* inline reveal */
p.inline input:checked + label + small {
  margin: 0 0.15em;
}

/* block reveal */
p.block input:checked + label + small {
  display: block;
  color: #838374;
  padding: 1ch 3ch;
}

/* hover reveal */

p.hover input + label + small,
p.hover input:checked + label + small {
  display: none;
}

p.hover input + label:hover + small {
  font-size:.8em;
  z-index: 1;
  position: absolute;
  display: block;
  opacity: 1;
  visibility: visible;
  padding: 0.3em 0.8em 0.4em;
  border-bottom: 1px;
  right: 4ch;
  left: 4ch;
  background: #222222ee;
  color: #eee;
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  pointer-events: none;
}

/******************
 Page demo styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font: 19px / 1.5 IBM Plex Serif, serif;
  padding: 5em 5vw;
  max-width: 70ch;
  margin: 0 auto;
}

p {
  position: relative;
}

p + p {
  margin-top: 4em;
}

p:before {
  text-transform: uppercase;
  position: absolute;
  left: 0;
  top: -2.5em;
  font-size: 0.7em;
  letter-spacing: 1px;
  color: #838374;
  font-family: IBM Plex Sans, sans-serif;
  content: attr(class);
}

              
            
!

JS

              
                
              
            
!
999px

Console