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.


                <p><code>columns:</code> <input type="range" name="columns" min="2" max="4" value="3"> <span>3</span><br>
<code>widows:</code> <input type="range" name="widows" min="1" max="3" value="2"> <span>2</span><br>
<code>orphans:</code> <input type="range" name="orphans" min="1" max="3" value="2"> <span>2</span></p>
  <h2>Wo wir sind ist vorne</h2>
  <p>Hurenkinder und Schusterjungen kennt man eher aus der klassischen Typographie. Dank <code>columns</code> Property können wir Mehrspaltigkeit aber auch mit CSS erreichen.</p>
  <p><b>Hurenkind</b> (engl. <em>widow</em>) bezeichnet einen Absatz, der einzeln am Anfang einer neuen Spalte oder Seite steht.</p> 
  <p><b>Schusterjunge</b> (engl. <em>orphan</em>) eine Zeile des nächsten Absatzesm dieeinzeln am Ende einer Spalte oder Seite steht.</p>
  <p>Mit den Properties <code>widow</code> und <code>orphans</code> lassen sich diese Zustände beeinflussen.</p>


                article {
  columns: 3;
  widows: 2;
  orphans: 2;
  hyphens: auto;

/*  styles only needed to make the demo more beautiful */
@import url(';900&display=swap');
@import url('');

html {
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 1.3rem;
    height: 100%;

body {
    background-image: linear-gradient( 
-170deg, rgba(35, 16, 21, 0.7) 0%, rgba(240, 63, 103, 0.5) 100%), url(;
    background-size: cover;
    background-position: 50% 100%;
    height: 100;
    margin: 0;
    padding: 2em 12%;

h2 {
  margin: 0 0 1em;




/** only needed for the demo **/
const article = document.querySelector('article');
document.querySelectorAll('input[type="range"]').forEach( r => {
   r.addEventListener('input', event => {[] = =;