Pen Settings



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


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.


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.


                <h1>Was <s>$499</s> Now $199</h1>

<p>Seems once they met she really <strike>tamed</strike> focused him.<p>

<p style="font-size:100px;">Huge Sale <s>$197</s></p>

<p>The thickness of the line adjust with the font size. Works with <code>&lt;s&gt;</code> or <code>&lt;strike&gt;</code></p>

<p><strong>Get more tricks and banter → <a href="">@JesseSchoberg</a></strong></p>

<h2> Tweaks</h2>
<p>The vertical position can vary a bit with different font families. You can adjust this based on your site's font my tweaking the <code>top: 50%;</code> in the css.</p>
<p>If <s>the text is really long</s> is add <code>class="straight"</code> <s class="straight">and it will be stright</s> </p>


                s, strike{text-decoration:none;position:relative;}
s::before, strike::before {
    top: 50%; /*tweak this to adjust the vertical position if it's off a bit due to your font family */
    background:red; /*this is the color of the line*/
    content: '';
    width: 110%;
    position: absolute;
    left: -5%;
    display: block;
    transform: rotate(-15deg);  
s.straight::before, strike.straight::before{transform: rotate(0deg);left:-1%;width:102%;}

/* not needed */
body{font-family:'Open Sans';text-align:center;color:#333;}
p, h1, h2{margin:1rem;}
code{background:#eee; font-size:1.2em;color:darkorange; padding:.5em .5em;border-radius:5px;}