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


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.


                <link href="" rel="stylesheet">

  <div class="wrapper">
    <h3 class="title">
      Jim Morrison's<br> Quote Machine
      <img class="image" src="">
    <button class="button">
      Touch me 



*:after {
  box-sizing: border-box;

body {
  font-family: 'Barrio', cursive;
  font-size: 62.5%;
  background: url('');
  display: flex;
  justify-content: center;
  align-items: center;

.wrapper {
  text-align: center;
  width: 90%;

.title {
  font-size: 4.5em;

.image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;

.button {
  background: black;
  color: white;
  padding: 20px;
  border: 5px solid black;
  font-size: 2em;
  border-radius: 100px;

.button:active {
  background: red;


                  "use strict";

  (function(d, M) {
    var quotes = ["Expose yourself to your deepest fear; after that, fear has no power, and the fear of freedom shrinks and vanishes. You are free.", "There are things known and things unknown and in between are the doors.", "I think of myself as an intelligent, sensitive human being with the soul of a clown which always forces me to blow it at the most important moments.", "A friend is someone who gives you total freedom to be yourself.", "Where's your will to be weird?", "Death makes angels of us all and gives us wings where we had shoulders smooth as ravens claws.", "I like people who shake other people up and make them feel uncomfortable.", "This is the strangest life I've ever known.", "I believe in a long, prolonged, derangement of the senses in order to obtain the unknown.", "Whoever controls the media, controls the mind."],
      len = quotes.length,
      p = d.querySelector("button");
    d.querySelector("div").addEventListener("click", function() {
      p.firstChild.nodeValue = quotes[M.floor(M.random() * (len))];
    }, 0);
  })(document, Math);