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

              
                <div class="warning">
  <h2>Feature is not supported</h2>
  <p>Your browser does not support sideways writing mode. View the Pen in Firefox.</p>
</div>

<div class="container">
  <div class='sideways-left'>
    <h2>Poem 6</h2>
    <p>I remember the way you were last autumn<br><br>
      You were the gray beret and a tranquil heart.<br><br>
      In your eyes, the flames of twilight tusseled<br><br>
      And the leaves were falling into the water of your soul.
  </div>

  <div class='sideways-right'>
    <h2>Poem 6</h2>
    <p>I remember the way you were last autumn<br><br>
      You were the gray beret and a tranquil heart.<br><br>
      In your eyes, the flames of twilight tusseled<br><br>
      And the leaves were falling into the water of your soul.
  </div>
</div>

<div class="container">
  <div class='vertical-left'>
    <h2>Poem 6</h2>
    <p>I remember the way you were last autumn<br><br>
      You were the gray beret and a tranquil heart.<br><br>
      In your eyes, the flames of twilight tusseled<br><br>
      And the leaves were falling into the water of your soul.
  </div>

  <div class='vertical-right'>
    <h2>Poem 6</h2>
    <p>I remember the way you were last autumn<br><br>
      You were the gray beret and a tranquil heart.<br><br>
      In your eyes, the flames of twilight tusseled<br><br>
      And the leaves were falling into the water of your soul.
  </div>
</div>
              
            
!

CSS

              
                .warning {
  color: red;
  text-align: center;
  font-size: 125%;
}

@supports (writing-mode: sideways-lr) {
  .warning {
    display: none;
  }
}

@supports not (writing-mode: sideways-lr) {
  .warning {
    display: block;
  }
}

body {
  margin-block: 2em;
  magin-inline: 4em;
  font-family: "Raleway", serif;
  line-height: 1;
}

.container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

.sideways-left {
  writing-mode: sideways-lr;
  border-block: 2px solid green;
  border-inline: 2px solid magenta;
  padding-inline: 1em;
}

.sideways-right {
  writing-mode: sideways-rl;
  border-block: 2px solid green;
  border-inline: 2px solid magenta;
  padding-inline: 1em;
}

.vertical-left {
  writing-mode: vertical-lr;
  border-block: 2px solid green;
  border-inline: 2px solid magenta;
  padding-inline: 1em;
  margin-inline-start: 4em;
}

.vertical-right {
  writing-mode: vertical-rl;
  border-block: 2px solid green;
  border-inline: 2px solid magenta;
  padding-inline: 1em;
  margin-inline-start: 4em;
}

              
            
!

JS

              
                
              
            
!
999px

Console