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. 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

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

              
                <p>
  First panel: Two large red buttons are on the front of a computer panel, a white gloved hand is moving between them, hesitating on which to press.
</p>
<ol>
  <li><span>Left button,</span> use title attribute<span>.</span></li>
  <li><span>Right button,</span> use tooltip role<span>.</span></li>
</ol>
<p>
  Second panel: A heavily perspiring man with an expression of panic and angst is dabbing at sweat on his forehead with his other white gloved hand.
</p>
              
            
!

CSS

              
                body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.2;
  background-image: url("https://assets.codepen.io/2729/buttons-meme.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  margin: 0 0 80vw 0;
  padding: 0;
}

p, span {
  position: absolute;
  top: auto;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE 6/7 */
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

ol {
  box-sizing: border-box;
/*  Change this if you need smaller or lager text  */
  font-size: 6vw;
  margin: 3vw 3vw 0 3vw;
  padding: 34vw 0;
  list-style-type: none;
  position: relative;
  width: 92vw;
  perspective: 100vw;
/*   outline: 1px dotted #0f0; */
}

li {
  list-style-type: none;
  position: absolute;
  transform-origin: top left;
  font-weight: bold;
  transform: rotateY(30deg) rotateX(18deg) rotateZ(-17deg);
  text-align: center;
/*   outline: 1px dotted #f00; */
}

li:first-child {
  top: 16vw;
  left: 6vw;
  width: 32vw;
}

li:last-child {
  top: 10vw;
  left: 41vw;
  width: 29vw;
  font-size: 90%;
  transform: rotateY(31deg) rotateX(22deg) rotateZ(-17deg);
}
              
            
!

JS

              
                
              
            
!
999px

Console