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

              
                <blockquote>
  <p>“It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming; but who does actually strive to do the deeds; who knows great enthusiasms, the great devotions; who spends himself in a worthy cause; who at the best knows in the end the triumph of high achievement, and who at the worst, if he fails, at least fails while daring greatly, so that his place shall never be with those cold and timid souls who neither know victory nor defeat.”</p>
  <cite>Theodore Roosevelt, <i>Citizenship In A Republic</i>,    delivered at the Sorbonne, in Paris, France <time
  datetime="1910-04-23">23 April, 1910</time></cite>
</blockquote>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Noto+Sans|Noto+Serif');
:root {
  --baseSize: 2rem;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #111;
  color: #fff;
}
blockquote {
  width: 80%;
  max-width: 55rem;
  font-size: var(--baseSize);
  line-height: 1.5;
}
p { 
  font-family: Noto Serif, serif;
  text-indent: calc((var(--baseSize) / 2) * -1);
}
cite, time {
  font-family: Noto Sans, sans-serif;
  font-style: normal;
  display: block;
  text-align: right;
  font-size: calc(var(--baseSize) / 1.5);
}
@supports (hanging-punctuation: first) {
  p {
    text-indent: 0;
    hanging-punctuation: first; 
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console