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.


                <ul class="list-wrapper">


  border:red solid 1px;


                  jQuery(document).ready(function($) {
    // Create an Alphabetical jump list
    // Look at h3 tags in the list
    var listItems = $(".list-wrapper h3").sort();


    var glossaryHTML = "";
    for (var i = 0; i < letters.length; i++) {
      var thisLetter = letters.charAt(i);

      // Need to find first of each letter
      var foundOne = -999;
      for (var j = 0; j < listItems.length; j++) {
        var itemText = listItems[j].innerText.toUpperCase();
        if (itemText.charAt(0) == thisLetter) {
          foundOne = j;

      // Create links and anchors based on whether something was found
      if (foundOne == -999) {
        // letter not found
        glossaryHTML += '<li class="disabled"><a class="page-link">' + thisLetter + "</a></li>";
      } else {
        // We found an item with a letter
        glossaryHTML +=
          '<li class="page-item"><a class="page-link" href="#glossary-' +
          thisLetter +
          '">' +
          thisLetter +
        // Create an anchor for the first letter found
        $(listItems[foundOne]).attr("id", "glossary-" + thisLetter);
    // after the pagination html is built insert it to the page
      "<nav aria-label='Alphabetical Navigation'><ul class='pagination'>" +
        glossaryHTML +