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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <h3>How to make pancakes</h3>
<section>
  <p>Put the flour into a large bowl, make a well in the centre and pour in the milk and eggs. Give the liquid mixture a quick whisk before incorporating the flour. Continue to whisk until you have a smooth batter.</p>
  <p>Now add 1 tbsp vegetable oil and whisk thoroughly.</p>
  <p>Take a crêpe pan, or large frying pan, dip some kitchen roll in the oil and carefully wipe the inside of the pan. Heat the pan over a medium heat for a minute.</p>
  <p>Add just under a ladleful of batter to the pan and immediately start swirling it round the pan to get a nice even layer.</p>
  <p>Cook the pancake for approximately 30-40 seconds. Use a palette knife to lift the pancake carefully to look at the underside to check it is golden-brown before turning over. Cook the other side for approx 30-40 seconds and transfer to a serving plate.</p>
  </section>
              
            
!

CSS

              
                body {
  counter-reset: section;           /* Set the section counter to 0 */
}
p:before {
  counter-increment: section;      /* Increment the section counter */
  content: "Step  " counter(section) ": "; /* Display the counter */
    font-weight: bold;
  padding-top: 5px;
  padding-bottom: 10px;
  color: #242424;
  font-size: 20px;
}
h3 {
      font-weight: bold;
  padding-top: 5px;
  padding-bottom: 10px;
  color: #242424;
  font-size: 20px;
 text-align: center;
  font-family: arial;
}

section {
  width: 600px;
  margin: auto;
  font-size: 16px;
  line-height: 24px;
  font-family: arial;
}
p {
  margin-bottom: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console