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="outer">
  <div class="container">
    <p class="label">writing-mode: horizontal-tb</p>
    <p class="main-text horizontal-tb">The Salinas Valley is in Northern California. It is a long narrow swale between two ranges of mountains, and the Salinas River winds and twists up the center until it falls at last into Monterey Bay.</p>
  </div>
  <div class="container">
    <p class="label">writing-mode: vertical-lr</p>
    <p class="main-text vertical-lr">ᠰᠠᠯᠢᠨᠢᠰ ᠤᠨ ᠬᠥᠨᠳᠡᠢ ᠨᠢ ᠬᠣᠶᠢᠳ ᠺᠠᠯᠢᠹᠣᠷᠨᠢᠳ ᠪᠠᠶᠢᠳᠠᠭ᠃ ᠡᠨᠡ ᠨᠢ ᠬᠣᠶᠠᠷ ᠨᠢᠷᠤᠭᠤᠨ ᠤ ᠬᠣᠭᠣᠷᠣᠨᠳᠣᠬᠢ ᠤᠷᠲᠤ ᠨᠠᠷᠢᠬᠠᠨ ᠬᠠᠪᠴᠢᠯ ᠪᠥᠭᠡᠳ ᠰᠠᠯᠢᠨᠠᠰ ᠭᠣᠣᠯ ᠨᠢ ᠰᠠᠯᠬᠢᠯᠠᠵᠤ᠂ ᠲᠥᠪ ᠢ ᠨᠢ ᠡᠷᠭᠢᠭᠦᠯᠵᠦ᠂ ᠡᠴᠦᠰ ᠲᠦ ᠨᠢ ᠮᠣᠨᠲ᠋ᠧᠷᠧᠢ ᠪᠤᠯᠤᠨ ᠷᠤ ᠤᠨᠠᠳᠠᠭ᠃</p>
  </div>
  <div class="container">
    <p class="label">writing-mode: vertical-rl</p>
    <p class="main-text vertical-rl">サリナスバレーは北カリフォルニアにあります。 それは2つの山脈の間の長く狭い湿地であり、サリナス川は中央を曲がりくねってねじれ、ついにモントレー湾に流れ込みます。</p>
  </div>
</div>
              
            
!

CSS

              
                p.horizontal-tb {
  writing-mode: horizontal-tb;
}

p.vertical-lr {
  writing-mode: vertical-lr;
}

p.vertical-rl {
  writing-mode: vertical-rl;
}

.main-text {
  font-family: "Garamond", "Georgia", serif;
}

p.label {
  font-family: monospace;
  margin-bottom: 8px;
}

.outer {
  max-width: 75%;
}

.container {
  padding: 8px;
  max-height: 200px;
}

.container:nth-child(2) {
  margin-bottom: 16px;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

              
            
!

JS

              
                
              
            
!
999px

Console