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

              
                <section class="columns">
  <h1>山路を登りながら</h1>
  <p>情に棹させば流される。智に働けば角が立つ。どこへ越しても住みにくいと悟った時、詩が生れて、画が出来る。とかくに人の世は住みにくい。意地を通せば窮屈だ。</p>
<p>とかくに人の世は住みにくい。</p>
<p>どこへ越しても住みにくいと悟った時、詩が生れて、画が出来る。意地を通せば窮屈だ。山路を登りながら、こう考えた。智に働けば角が立つ。どこへ越しても住みにくいと悟った時、詩が生れて、画が出来る。智に働けば角が立つ。 </p>
<p>とかくに人の世は住みにくい。山路を登りながら、こう考えた。とかくに人の世は住みにくい。住みにくさが高じると、安い所へ引き越したくなる。住みにくさが高じると、安い所へ引き越したくなる。情に棹させば流される。 </p>
<p>意地を通せば窮屈だ。住みにくさが高じると、安い所へ引き越したくなる。意地を通せば窮屈だ。</p>
<p> とかくに人の世は住みにくい。とかくに人の世は住みにくい。住みにくさが高じると、安い所へ引き越したくなる。山路を登りながら、こう考えた。</p>
<figure><img src="https://www.instagram.com/p/BbeerKIl83S/media/?size=m"></figure>
<p class="bikou">(PC:15字×2段/行、スマホ:15文字/行)<p>
</section>
              
            
!

CSS

              
                html {
  font-size:   20px;
}

.columns {
  width: 42rem;
  padding: 1rem;
  margin: 0 auto;
  background: #FFF5B8;
  border-radius: 10px;
  column-count: 2;
  column-width: 20rem;
  column-gap: 2rem;
  text-align: justify;
}

.columns h1 {
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}

.columns figure {
  text-align: center;
  margin: 2rem 0;
}

.columns figure img {
  max-width: 100%;
}

.columns .bikou {
  font-size: 0.8rem;
  text-align: right;
}

@media (max-width: 600px) {
  .columns {
    width: 20rem;
    background: #FFE3E1;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console