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.


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.


                <h2 class="notice"></h2>
<h3>CSS Tutorials</h3>
<ol class="css-tutorials">
  <li data-category="html">A run down of Burbon neat variables.</li>
  <li data-category="css">Taking Bourbon Neat Mixins to the Next Level.</li>
  <li data-category="css">Watch Our New Coffee Break Course on CSSketch.</li>
  <li data-category="css">6 Essential Bourbon Neat Mixins.</li>
  <li data-category="css">Blending Modes in CSS: Color Theory and Practical Application.</li>

<h3>JavaScript Tutorials</h3>
<ol class="js-tutorials">
  <li data-category="js">A beginner's guide to AJAX with jQuery.</li>
  <li data-category="js">An example of AJAX in vanilla JavaScript.</li>
  <li data-category="js">An introduction to AJAX for front-end designers.</li>
  <li data-category="css">Quick Tip: Don’t Forget the "noscript" Element.</li>
  <li data-category="js">Building a CMS: Structure and Styling.</li>


                body {
  font-family: 'Lato';
  width: 600px;

li {
  line-height: 1.7em;

  list-style: none;
  padding: 0;

  color: white;
  background: rgba(255,0,0,0.4);
  padding: 0 4px;
  border-radius: 2px;


                var count = 0;

$("ol").each(function() {
  var className = $(this).prop('className');
  var attributeValue = className.substring(0, className.indexOf("-"));
  var selector = "." + className + " li[data-category!='" + attributeValue + "']";
  $(selector).each(function() {
    $("." + className + " .mismatch").attr("data-category", attributeValue);
$(".notice").text("Found " + count + " cateogry mismatches.");