Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolores culpa nisi, ut voluptates consequatur quod ratione! Optio ducimus aliquam et nobis doloremque dolorum repellat, voluptate fuga, rerum porro animi numquam.
Nesciunt alias, modi maiores neque nihil labore molestias adipisci sed minima deleniti? Quis incidunt et facere. Aliquid aspernatur, eaque quisquam ea nisi ipsam, eligendi sapiente hic voluptatibus, molestias consequatur enim?
Debitis fugiat harum quos in exercitationem pariatur, quis architecto, repellat ex a provident eum illo facere molestias nisi praesentium vitae expedita hic ut necessitatibus iste fuga impedit delectus commodi. Nam!
Hic dolore, voluptatum laboriosam blanditiis porro magnam obcaecati repellat sint fugit doloremque sit magni tenetur placeat velit, corrupti quam minus rerum a fuga voluptatibus natus accusamus sunt minima ad! Itaque?
Quos impedit ea eveniet asperiores unde deserunt blanditiis facere, vero porro ut quas veritatis repellat quam excepturi qui, temporibus voluptatum nemo cumque repellendus, a voluptates. Saepe consequuntur debitis beatae dolorem!</div>
              
            
!

CSS

              
                div {
  border: 2px solid blue;
  margin: 1em;
  paint-order: stroke;
  overflow: auto;
}
::selection {
  -webkit-text-stroke-color: rgba(0%,100%,0%, 0.7);
  -webkit-text-stroke-width: 2px;
  color: navy;
}
              
            
!

JS

              
                let d = document.querySelector("div");

d.style.height = getComputedStyle(d).height;

d.style.webkitTextStroke="50px rgba(100%, 0%, 0%, 0.2)";
              
            
!
999px

Console