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

+ add another resource


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


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.


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.


<p>&mdash; By Heydon Pickering &mdash;</p>
<ul class="chapters">
  <li><a href="#"><span>Prologue That Is Very Long And Boring</span></a><time> <span>1st September 2014</span></time></li>
  <li><a href="#"><span>Chapter One</span></a><time> <span>8th August 2014</span></time></li>
  <li><a href="#"><span>Chapter Two</span></a><time> <span>19th July 2014</span></time></li>
  <li><a href="#"><span>Chapter Three Heading Is Also Very Long</span></a><time> <span>6th June 2014</span></time></li>
  <li><a href="#"><span>Epilogue</span></a><time> <span>9th May  2014</span></time></li>


                @import url(,400italic,700);

@import url(;

* {
  padding: 0;
  margin: 0;
  border: 0;
  vertical-align: baseline;

body {
  font-size: 125%;
  font-family: Gentium Book Basic, serif;
  line-height: 1.33;
  font-weight: normal;
  max-width: 30em;
  margin: 1.33em auto;
  background: #FFFFCC;

* + * {
  margin-top: 1.33em;

h1, h2 {
  text-align: center;
  font-family: Alegreya SC, serif;
  font-weight: normal;
  line-height: 1;

h1 {
  font-size: 3em;

li {
  margin-top: 0;

a {
  text-decoration: none;
  border-bottom: 1px solid;
  color: #000;

/*ul*/.chapters li {
  font-size: 1.25em;
  list-style: none;
  line-height: 1.125;

/*ul*/.chapters a {
  font-weight: bold;
  border: 0;

/*ul*/.chapters a, /*ul*/.chapters time {
  display: inline-block;
  width: 50%;
  vertical-align: baseline;
  margin-top: 0.33em;

/*ul*/.chapters time {
  text-align: right;
  font-style: italic;

/*ul*/.chapters li:after {
  content: '';
  display: block;
  height: 0;
  border-top: 3px dotted;
  position: relative;
  bottom: 0.4em;
  left: 3px;
  right: 5px;
  z-index: -1;

span {
  background: #ffffcc;
  padding: 0 0.125em 0 0;

time span {
  padding: 0 0 0 0.125em;

h1 + p {
  margin-top: 0;
  text-align: center;