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


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>Lorem ipsum dolor sit <a class="link-tooltip" href="#" title="link to source">amet consectetur</a> adipisicing elit. Quae reiciendis aspernatur facere! Magnam delectus facere vitae, blanditiis dolorum dicta optio?</h2> 
<h2>A, <a class="link-tooltip" href="#" title="Lorem ipsum dolor sit amet consectetur adipisicing elit.">ad architecto illo</a> aut labore eos vitae quae beatae.</h2>


                .tooltip-custom {
  position: absolute;
  z-index: 999;
  left: -9999px;
  background-color: #fff;
  padding: 7px 10px;
  border: 1px solid blue;
  border-radius: 5px;
  width: auto;
  max-width: 250px;


                function showTooltip(targetItems, name){
    var badgeDescription = $(this).attr('title');
    $('body').append("<div class='"+ name +"' id='"+ name + i +"'>"+ badgeDescription +"</div>");
    var tooltip = $('#'+name+i);
      tooltip.css({opacity:0.9, display:'none'}).fadeIn();
      tooltip.css({left:kmouse.pageX+15, top:kmouse.pageY+15});

  showTooltip('.link-tooltip', 'tooltip-custom');