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

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

              
                <h2>< del > + < ins ></h2>
<p>
  This one is an <ins>ins</ins> while this is a <del>del</del>. Sit amet, consectetur adipiscing elit. Fusce molestie sem nec massa rutrum lacinia. This one has replaced text... <del>old phrase</del><ins>new phrase</ins> ligula metus, eget tincidunt tellus tincidunt non. Ut sed vehicula neque. Pellentesque <del>this is a crazy-long deleted section to see what happens when it wraps to other lines</del> morbi tristique <ins>this a single, really long block of inserted text to demonstrate what it does while wrapping multiple lines. What do you think?</ins><del>del content</del> senectus et netus et malesuada fames ac turpis egestas. The CSS is a little hacky, but the effect might be worth it.
</p>
              
            
!

CSS

              
                html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; }
html {
  min-height: 100vh;
  font-size: 10px;
}
body {
  min-height: 100vh;
  background: linear-gradient(to bottom, #ecf0f1 50%, #bdc3c7);
  color: rgba(52, 73, 94,1.0);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  font-size: 3.3rem;
  font-weight: 200;
  padding: 2em 3em;
  line-height: 1.5;
}
ins, del{
  text-decoration: none;
  display: inline-block;
  padding: 0 .3em;
}
ins {
  background: #83d5a8;
  height: auto;
  border-radius: .3em;
  display: inline; 
  -webkit-box-decoration-break: clone;
  -o-box-decoration-break: clone;
  box-decoration-break: clone;
  margin-left: .07em;
  margin-right: .07em;
}
del {
  background: rgba(231, 76, 60,.5);
  cursor: no-drop;
  position: relative;
  top: .2em;
  height: 1.31em;
  width: .4em;
  line-height: 1.35;
  overflow: hidden;
  color: transparent;
  margin: -.4em .07em -.05em .07em;
  padding: 0 0 .1em 0;
  -webkit-box-decoration-break: clone;
  -o-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: .3em;
  transition: padding-left ease .3s, padding-right ease .3s, color ease .15s;
}
del:hover {
  width: auto;
  color: #962e22;
  display: inline;
  padding: 0 .35em 0em 0.35em;
  line-height: unset;
  position: unset;
  top: unset;
  height: unset;
  transition: padding-left ease .3s, padding-right ease .3s, color ease .7s;
}
              
            
!

JS

              
                
              
            
!
999px

Console