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="wrapper">
<div class="slave">
<div class="slave-inner">
<p>どんなに永いこと散歩しても、それでも物たりなかったという。ひとけなき夜の道。女は、息もたえだえの思いで、幾度となく胴をくねらせた。けれども、大学生は、レインコオトのポケットに両手をつっこんだまま、さっさと歩いた。女は、その大学生の怒った肩に、おのれの丸いやわらかな肩をこすりつけるようにしながら男の後を追った。</p>
<p>大学生は、頭がよかった。女の発情を察知していた。歩きながら囁いた。</p>
<p>「ね、この道をまっすぐに歩いていって、三つ目のポストのところでキスしよう」</p>
<p>女は、からだを固くした。</p>
</div>
</div>
<div class="master">
<ul>
<li class="banner">Banner</li>
<li class="banner">Banner</li>
</ul>
</div>
</div>

<footer>
<dl>
<dt>Dummy text : </dt>
<dd><a href="http://www.aozora.gr.jp/cards/000035/files/240_15059.html">太宰治 あさましきもの</a></dd></dl>
</footer>
              
            
!

CSS

              
                .wrapper {
  display: flex;
}

.slave {
  overflow-y: scroll;
  min-height: 5em;
}

.slave-inner {
  height: 0;
}

/* for Demo Style */

body {
  max-width: 40em;
  margin: 20px auto;
}

.slave,
.master {
  padding: 1em 2em;
  border: 1px solid;
}

.slave-inner > *:first-child {
  margin-top: 0;
}

.slave-inner > *:last-child::after {
  content: "";
  display: block;
  padding-bottom: 1em;
}

.master {
  border-left: 0;
}

.banner {
  padding: 1.25em 1em;
  background-color: midnightblue;
  color: #fff;
  font-size: large;
}

.master li:not(:first-child) {
  margin-top: 1em;
}

ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

footer {
  margin-top: 60px;
  font-size: smaller;
  text-align: right;
}

footer dt,
footer dd {
  margin-left: 0;
  display: inline-block;
}
              
            
!

JS

              
                
              
            
!
999px

Console