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

              
                <p><span class="lorem-dashum"><strong>All of these words are necessary</strong>, but what they actually say is unimportant because they’re invisible. The <code>background-image</code>’s <code>url</code> is an SVG whose <code>stroke-dasharray</code> contains values that match a snippet of the Gettysburg Address, kindly provided by <a href="http://thosecleverkids.com">Tom Clancy</a> — thanks Tom!.</span></p>

<p><span class="lorem-dashum">But, in a larger sense, we can not dedicate — we can not consecrate — we can not hallow — this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us — that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion — that we here highly resolve that these dead shall not have died in vain — that this nation, under God, shall have a new birth of freedom — and that government of the people, by the people, for the people, shall not perish from the earth.</span></p>

<p><span class="lorem-dashum">Lets test some common elements: <a href="https://duckduckgo.com/">This is an anchor</a></span></p>
              
            
!

CSS

              
                .lorem-dashum, .lorem-dashum * {color:transparent; pointer-events:none;}
.lorem-dashum {background-image:url('data:image/svg+xml,%3Csvg%20width%3D%22995%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200h995%22%20stroke%3D%22%23666%22%20stroke-width%3D%2210%22%20stroke-dasharray%3D%2223%2B10%2B28%2B10%2B17%2B10%2B28%2B10%2B28%2B10%2B17%2B10%2B17%2B10%2B40%2B10%2B40%2B10%2B28%2B10%2B11%2B10%2B23%2B10%2B51%2B10%2B5%2B10%2B17%2B10%2B34%2B10%2B51%2B10%2B11%2B10%2B40%2B10%2B17%2B10%2B51%2B10%2B11%2B10%2B17%2B10%2B63%2B10%2B23%2B10%2B17%2B10%2B17%2B10%22%2F%3E%3C%2Fsvg%3E'); background-position:0 7px;}
              
            
!

JS

              
                
              
            
!
999px

Console