Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <h2>Stepper</h2>
<p id="version">Last updated in <a href="https://cdn.watermarkinsights.com/css/1.1.11/wm-global.css" target="blank">1.1.11</a></p>
<p>The stepper is used to indicate the stages of a mutli-step process. The HTML structure consists of a container element with a class of <code>stepper</code> and a number of elements with a class of <code>step</code>. Each step has an empty element with a class of <code>ordinal</code> which will render an auto-incrementing number. The step element should also include an element with text that identifies the step.</p>

<div class="stepper">
  <div class="step completed">
    <div class="ordinal"></div>
    <div>Step 1</div>
  </div>
  <div class="step" aria-current="step">
    <div class="ordinal"></div>
    <div>Step 2</div>
  </div>
  <div class="step">
    <div class="ordinal"></div>
    <div>The third step</div>
  </div>
  <div class="step">
    <div class="ordinal"></div>
    <div>Final step</div>
  </div>
</div>
  
<h2>Step Status</h2>
<p>In version 1.1.11 and later, the current step should have an <code>aria-current</code> attribute of "step". In earlier versions, give it a class of <code>active</code>.<br>
Completed steps can be given a class of <code>completed</code>.</p>

<h2>Additional note</h2>
<p>The stepper is usually placed within an element with left and right padding of 30px and expected to extend to the edges of the element. As a result, the global stepper has left and right margins of -30px.</p>
              
            
!

CSS

              
                html, body {
  height: auto;
}
body {
  padding: 0 20px 40px;
  font-size: 14px;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0;
  
  &:not(:first-of-type) {
    margin-top: 32px;
  }
  
  + p {
    margin-top: 0;
  }
}
.stepper {
  margin-left:-20px;
  margin-right: -20px;
}
#version {
  font-style: italic;
}
              
            
!

JS

              
                
              
            
!
999px

Console