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><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>
<article>
  <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>
              
            
!

CSS

              
                article {
  columns: 3;
  widows: 2;
  orphans: 2;
  hyphens: auto;
  text-align: 
}













/*  styles only needed to make the demo more beautiful */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');

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(https://wowirsindistvorne.show/wp-content/themes/wwsiv/img/andre-benz-JBkwaYMuhdc-1800-compress-or-die.jpg);
    background-size: cover;
    background-position: 50% 100%;
    height: 100;
    margin: 0;
    padding: 2em 12%;
}

h2 {
  margin: 0 0 1em;
}

              
            
!

JS

              
                

















/** only needed for the demo **/
const article = document.querySelector('article');
document.querySelectorAll('input[type="range"]').forEach( r => {
   r.addEventListener('input', event => {
     article.style[event.target.name] = event.target.nextElementSibling.textContent = event.target.value;
   });
});
              
            
!
999px

Console