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

              
                <h1>Orphans and Widows</h1>

<section>
  <h2>Pellentesque habitant morbi tristique senectus et netus et</h2>
  <p>Malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.</p>
  <p>Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit excepturi blanditiis.</p>
  <p>Gusto sunt ipsum sint culpa veniam nisi amet porro ab sapiente at maxime quisquam, illum nobis, esse autem impedit tempora?</p>
  <p>Ut eius omnis distinctio perspiciatis impedit sint. Doloremque, saepe quibusdam facilis sunt molestias vitae. Modi itaque quis ipsa sequi assumenda, debitis consequuntur accusantium sit dolores dolorem amet eveniet sapiente aliquam.</p>
  <p>Eos, perferendis, ut. Esse maiores at voluptatem et, molestias! Nostrum dolores tempore ex quaerat, harum placeat alias molestias.</p>
  <p>Libero adipisci expedita. Molestiae quos, deleniti id adipisci similique ad pariatur.</p>
  <p>Deleniti quisquam ratione excepturi. Deserunt mollitia quos nihil quas, maiores voluptates enim debitis, voluptatem laudantium aperiam beatae alias facilis esse rem magni asperiores, quae qui veritatis dolore molestias libero! Quaerat.</p>
  <p>Cupiditate placeat facere saepe fuga omnis at dolor provident quidem nulla illo. Tempora, labore ad nostrum minima similique.</p>
  <p>Repellat illum ea quidem placeat cupiditate enim. Iure illum tempora, pariatur recusandae!</p>
</section>

<ul>
  <li><a href="https://css-tricks.com/almanac/properties/w/widows/">https://css-tricks.com/almanac/properties/w/widows/</a></li>
  <li><a href="https://css-tricks.com/almanac/properties/o/orphans/">https://css-tricks.com/almanac/properties/o/orphans/</a></li>
  <li>Chrome's dev tools Style Editor won't reflect changes to <code>widows</code> declarations on column elements.</li>
</ul>

<p>Sigh.</p>
              
            
!

CSS

              
                section {
  width: 600px;
  border: dashed 1px $color;
  columns: 3;
  column-rule: dashed 1px $color;
  
  p {
    color: $color;
    orphans: 3;
    widows: 3;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console