Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

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


Auto Save

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.


                <div class="container">
  <h1>H1 sample</h1>
  <h2>H2 sample</h2>
  <h3>H3 sample</h3>
  <p>Brunch vinyl post-ironic before they sold out, organic meggings mlkshk Shoreditch lomo ennui flannel cliche Neutra.  Tonx fap forage Pinterest bitters YOLO, dreamcatcher Austin letterpress High Life chambray mumblecore street art chillwave.</p>
  <p>Narwhal ugh seitan Pitchfork, put a bird on it irony sartorial Bushwick Marfa viral. Carles plaid tattooed dreamcatcher jean shorts tofu, butcher flannel try-hard.</p>


                html {
  font: 100%/1.4 Georgia, Times, "Times New Roman", serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;

@media (min-width: 40rem) {
  html { font-size: 112%; }

@media (min-width: 64rem) {
  html { font-size: 120%; }

body {
  background-color: #FAFAFA;
  color: #333333;

.container {
  margin: 0 auto;
  max-width: 53rem;
  width: 90%;

h1, h2, h3, h4, h5 {
  font-weight: 400;
  margin: 0;

h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;

h3 {
  font-size: 1.313rem;
  margin-bottom: .5rem;

@media (min-width: 40rem) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }

p {
  max-width: 30rem; /* for better readability */