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 class="hinweis">Hinweis: text-wrap: balance wird in diesem Browser nicht unterstützt. Es geht
  aber beispielsweise in Chrome ab Version 114.
</p>
<h1>text-wrap: balance</h1>
<div class="container">
  <p>ohne text-wrap: balance: Zeilenlänge nicht angeglichen</p>
  <h2>Morgenstund hat Gold im Mund und der superfrühe Vogel fängt den Wurm</h2>
</div>
<div class="container">
  <p>mit text-wrap: balance: Zeilenlänge angeglichen</p>
  <h2 class="balance">Morgenstund hat Gold im Mund und der superfrühe Vogel fängt den Wurm</h2>
</div>
<ul>
  <li>Für Blockelemente</li>
  <li>Anzahl an Zeilen darf sich im Vergleich zum Ursprung (ohne balance) nicht ändern</li>
  <li>UAs may treat this value as wrap if there are more than ten lines to balance.
    (<a href="https://www.w3.org/TR/css-text-4/#text-wrap">https://www.w3.org/TR/css-text-4/#text-wrap</a>)</li>
  <li>it only works for 4 wrapped lines and under.
    (<a href="https://developer.chrome.com/blog/css-text-wrap-balance/">developer.chrome.com</a>)</li>
</ul>
              
            
!

CSS

              
                .hinweis {
  background-color: lightpink;
  padding: 1rem;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.3;
  max-width: 28rem;
  margin: auto;
}

.balance {
  text-wrap: balance;
}

h2 {
  border-bottom: 1rem solid orange;
  padding-bottom: 1rem;
  text-align: left;
  hyphens: auto;
}
.container {
  padding: 1rem;
  background: lightgoldenrodyellow;
}
@supports (text-wrap: balance) {
  .hinweis {
    display: none;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console