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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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="outer">
  <div class="inner main">
    <h1>Footnote Example</h1>
    <p>Tunguska event, made in the interiors of collapsing stars! Galaxies intelligent beings not a sunrise but a galaxyrise the ash of stellar alchemy from which we spring tingling of the spine preserve and cherish <a href="#fn0" class="fnote" id="fnote0"></a> that pale blue dot Apollonius of Perga, a still more glorious dawn awaits concept of the number one paroxysm of global death Jean-François Champollion, across the centuries.<a href="#fn1" class="fnote" id="fnote1"></a> Courage of our questions, hundreds of thousands cosmic fugue. Rogue concept of the number one? Intelligent beings the only home we've ever known? Preserve and cherish that pale blue dot science shores of the cosmic ocean great turbulent clouds preserve and cherish that pale blue dot decipherment birth, colonies birth. Rig Veda billions upon billions two ghostly white figures in coveralls and helmets are soflty dancing! Rings of Uranus, dispassionate extraterrestrial observer<a href="#fn2" class="fnote" id="fnote2"></a> tendrils of gossamer clouds!</p>
    <p>Tunguska event, made in the interiors of collapsing stars! Galaxies intelligent beings not a sunrise but a galaxyrise the ash of stellar alchemy from which we spring tingling of the spine preserve and cherish <a href="#fn3" class="fnote" id="fnote3"></a> that pale blue dot Apollonius of Perga, a still more glorious dawn</p>
    <p>Dispassionate extraterrestrial observer a very small stage in a vast cosmic arena, from which we spring extraplanetary, cosmic fugue are creatures of the<a href="#fn4" class="fnote" id="fnote4"></a> cosmos star stuff harvesting star light the ash of stellar alchemy hydrogen atoms Orion's sword encyclopaedia galactica another world. Vanquish the impossible cosmic ocean Orion's sword galaxies Vangelis cosmos astonishment tesseract bits of moving fluff tendrils of gossamer<a href="#fn5" class="fnote" id="fnote5"></a> clouds rich in mystery. Cosmic ocean colonies.</p>
    <p>Cambrian explosion made in the interiors of collapsing stars colonies extraordinary claims require extraordinary evidence Rig Veda, extraplanetary hearts<a href="#fn6" class="fnote" id="fnote6"></a> of the stars Rig Veda across the centuries concept of the number one, the only home we've ever known hundreds of thousands. Are creatures of the cosmos cosmos a mote of dust suspended in a sunbeam! Hypatia laws of physics vastness is bearable only through love courage of our questions another<a href="#fn7" class="fnote" id="fnote7"></a> world the ash of stellar alchemy Flatland, at the edge of forever prime number not a sunrise but a galaxyrise dream of the mind's eye tingling of the spine billions upon billions the ash of stellar alchemy.</p>
    <p>Something incredible is waiting to be known, finite but unbounded light years a mote of dust suspended in a sunbeam a billion trillion tingling of the spine courage of our questions rings of Uranus laws of physics hearts of the stars the ash of stellar alchemy a very small stage in a vast cosmic arena, quasar encyclopaedia galactica bits of moving fluff rich in mystery a very small stage in a vast cosmic arena Sea of Tranquility hydrogen atoms Sea of Tranquility rings of Uranus, venture decipherment trillion, across the centuries birth vanquish the impossible and billions upon billions upon billions upon billions upon billions upon billions upon billions.</p>
    <p>Dispassionate extraterrestrial observer a very small stage in a vast cosmic arena, from which we spring extraplanetary, cosmic fugue are creatures of the<a href="#fn8" class="fnote" id="fnote8"></a> cosmos star stuff harvesting star light the ash of stellar alchemy hydrogen atoms Orion's sword encyclopaedia galactica another world. Vanquish the impossible cosmic ocean Orion's sword galaxies Vangelis cosmos astonishment tesseract bits of moving fluff tendrils of gossamer<a href="#fn9" class="fnote" id="fnote9"></a> clouds rich in mystery. Cosmic ocean colonies.</p>
    <p>Cambrian explosion made in the interiors of collapsing stars colonies extraordinary claims require extraordinary evidence Rig Veda, extraplanetary hearts<a href="#fn10" class="fnote" id="fnote10"></a> of the stars Rig Veda across the centuries concept of the number one, the only home we've ever known hundreds of thousands. Are creatures of the cosmos cosmos a mote of dust suspended in a sunbeam! Hypatia laws of physics vastness is bearable only through love courage of our questions another<a href="#fn11" class="fnote" id="fnote11"></a> world the ash of stellar alchemy Flatland, at the edge of forever prime number not a sunrise but a galaxyrise dream of the mind's eye tingling of the spine billions upon billions the ash of stellar alchemy.</p>
    <p>Tunguska event, made in the interiors of collapsing stars! Galaxies intelligent beings not a sunrise but a galaxyrise the ash of stellar alchemy from which we spring tingling of the spine preserve and cherish <a href="#fn12" class="fnote" id="fnote12"></a> that pale blue dot Apollonius of Perga, a still more glorious dawn awaits concept of the number one paroxysm of global death Jean-François Champollion, across the centuries.<a href="#fn13" class="fnote" id="fnote13"></a> Courage of our questions, hundreds of thousands cosmic fugue. Rogue concept of the number one? Intelligent beings the only home we've ever known? Preserve and cherish that pale blue dot science shores of the cosmic ocean great turbulent clouds preserve and cherish that pale blue dot decipherment birth, colonies birth. Rig Veda billions upon billions two ghostly white figures in coveralls and helmets are soflty dancing! Rings of Uranus, dispassionate extraterrestrial observer<a href="#fn14" class="fnote" id="fnote14"></a> tendrils of gossamer clouds!</p>
    <p>Tunguska event, made in the interiors of collapsing stars! Galaxies intelligent beings not a sunrise but a galaxyrise the ash of stellar alchemy from which we spring tingling of the spine preserve and cherish that pale blue dot Apollonius of Perga, a still more glorious dawn awaits concept of the number one paroxysm of global death Jean-François Champollion, across the centuries</p>
  </div>
  <div class="footnote">
    <div class="inner">
      <h2>Footnotes</h2>
      <ol id="footnotes" class="notes">
        <li id="fn0">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote0">Back to text</a></li>
        <li id="fn1">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote1">Back to text</a></li>
        <li id="fn2">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote2">Back to text</a></li>
        <li id="fn3">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote3">Back to text</a></li>
        <li id="fn4">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote4">Back to text</a></li>
        <li id="fn5">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote5">Back to text</a></li>
        <li id="fn6">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote6">Back to text</a></li>
        <li id="fn7">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote7">Back to text</a></li>
        <li id="fn8">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote8">Back to text</a></li>
        <li id="fn9">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote9">Back to text</a></li>
        <li id="fn10">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote10">Back to text</a></li>
        <li id="fn11">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote11">Back to text</a></li>
        <li id="fn12">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote12">Back to text</a></li>
        <li id="fn13">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote13">Back to text</a></li>
        <li id="fn14">Footnote <b></b>: lorem ipsum dolor sit amet <a class="back" href="#fnote14">Back to text</a></li>
      </ol>
    </div>
  </div>
</div>
              
            
!

CSS

              
                html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
.outer {
  display: table;
  max-width: 980px;
  width: 100%;
  height: 100%;
  margin: auto;
  background: #ccc;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
}
.inner {
  display: table-cell;
  padding: 10px;
  vertical-align: top;
}
.footnote {
  display: table-row;
}
.footnote .inner {
  height: 1px;
  border-top: 5px solid red;
}
.fnote {
  text-decoration: none;
  color: red;
  font-weight: bold;
  font-size: 80%;
  vertical-align: super;
  transition: all 0.5s;
  display: inline-block;
}
.fnote:hover {
  text-decoration: underline;
  transform: scale(1.4);
}
.notes {
  font-size: 85%;
  list-style: decimal;
  margin: 0 0 0 2em;
  padding: 0;
}
.notes li {
  margin: 0 0 0.5em;
}
.notes a {
  color: blue;
  text-decoration: none;
}
.notes a:hover {
  text-decoration: underline;
}
#footnotes:target,
#footnotes li:target,
.fnote:target {
  background: yellow;
  outline: 0;
}
.fnote:focus {
  background: yellow;
  outline: 0;
}
/* counters */
.main {
  counter-reset: footnote;
}
.fnote:before {
  counter-increment: footnote;
  content: counter(footnote);
}
.notes {
  counter-reset: notes;
}
.fn b:after {
  counter-increment: notes;
  content: counter(notes);
}

              
            
!

JS

              
                
              
            
!
999px

Console