Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div id="ex-1">
  <h3>Inline SVG</h3>
  <p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Iste distinctio fuga blanditiis voluptate sit? Consectetur non natus est expedita. Voluptate quia architecto quasi. <a href="#"><svg aria-hidden="true" class="fa-external-link-alt" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M432 288h-16a16 16 0 00-16 16v154a6 6 0 01-6 6H54a6 6 0 01-6-6V118a6 6 0 016-6h154a16 16 0 0016-16V80a16 16 0 00-16-16H48a48 48 0 00-48 48v352a48 48 0 0048 48h352a48 48 0 0048-48V304a16 16 0 00-16-16zM500 0H364a12 12 0 00-8.48 20.48l48.19 48.21-272.2 272.2a12 12 0 000 17l22.63 22.63a12 12 0 0017 0l272.2-272.21 48.21 48.2A12 12 0 00512 148V12a12 12 0 00-12-12z"/></svg> Mollitia est vel voluptas praesentium eos perferendis!</a>
  </p>
</div>
              
            
!

CSS

              
                p svg {
  height: 1em;
  width: 1em;
}
              
            
!

JS

              
                
              
            
!
999px

Console