Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


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.


                <div class="wizardbar">
  <a class="wizardbar-item" href="one">
  <a class="wizardbar-item current" href="two">
  <a class="wizardbar-item" href="three">
  <a class="wizardbar-item" href="four">


                /*Theming options - change and everything updates*/
@wizardSize: 14px;

@wizardColor: #a00;
@bodyColor: black;
@hoverColor: lighten(@wizardColor, 20%);
@lightColor: lighten(@wizardColor, 35%);

@paddingVert: .5em; /*don't use more decimals, as it makes browser round errors more likely, make heights unmatching
-also watch using decimals at all at low wizardSize font sizes!*/
@paddingSide: .8em;
@arrowLength: 1em;
@itemMargin: 2px;

@borderRadiusVal: .25em;

.wizardbar {
  font-size: @wizardSize;
  line-height: 1;
  display: inline-block;
  margin: 50px 0;
  /*base item styles*/
  .wizardbar-item {
    display: inline-block;
    padding: @paddingVert @paddingSide;
    padding-left: @paddingSide + @arrowLength;
    text-decoration: none;
    transition: all .15s;
    /*default styles*/
    background-color: @lightColor;
    color: rgba(255,255,255, .8);
    text-align: center;
    text-shadow: 1px 1px rgba(0,0,0,.2);
    position: relative;
    margin-right: @itemMargin;
    /*arrow styles*/
    .wizardbar-item:after {
      content: "";
      height: 0;
      width: 0;
      border-width: (.5+@paddingVert) 0 (.5+@paddingVert) @arrowLength;
      border-style: solid;
      transition: all .15s;
      position: absolute;
      left: 100%;
      top: 0;
      /*arrow overlapping left side of item*/
      .wizardbar-item:before {
          border-color: transparent transparent transparent @bodyColor;
        left: 0;  
      /*arrow pointing out from right side of items*/
      .wizardbar-item:after {
        border-color: transparent transparent transparent @lightColor;  
        z-index: 1;
    /*current item styles*/
    .current.wizardbar-item {
      background-color: @wizardColor;
      color: white;
      cursor: default;
        .current.wizardbar-item:after {
          border-color: transparent transparent transparent @wizardColor;  
    /*hover styles*/
    .wizardbar-item:not(.current):hover {
      background-color: @hoverColor;
          border-color: transparent transparent transparent @hoverColor;
      /*remove arrows from beginning and end*/
        border-color: transparent!important;
       /*no inset arrow for first item*/
      .wizardbar-item:first-of-type {
        border-radius: @borderRadiusVal 0 0 @borderRadiusVal;
        padding-left: @paddingSide + (@arrowLength/2)
      /*no protruding arrow for last item*/
      .wizardbar-item:last-of-type {
        border-radius: 0 @borderRadiusVal @borderRadiusVal 0;
        padding-right: @paddingSide + (@arrowLength/2);
body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: @bodyColor;
  line-height: 1.5;


                /*demo JS to switch active item on click.*/