cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

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.

            
              <body>
  <h1>段組サンプル5</h1>
  <p>それぞれ「column-width:8em;」、「width:10em;」を指定した上で、それぞれheight指定
  <div id="text">
  <h2>height指定なし</h2>
    <p id="text01">春はあけぼの。そらはいたくかすみたるに。やうやうしろくなりゆく山ぎはのすこしづつあかみて。むらさきだちたる雲のほそくたな引たるなどいとおかし。</p>
   <h2>height:10em;</h2>
   <p id="text02">夏はよる。月のころはさらなり。やみもなをほたるおほくとびちがひたる。又たゞ一二などほのかにうちひかりてゆくもいとおかし。雨のどやかにふりたるさへこそおかしけれ。</p>
   <h2>height:2em;</h2>
    <p id="text03">秋はタ暮。夕日のきはやかにさして。山の葉ちかう見えわたるに。からすのねにゆくとて。三四二などとびゆくもあはれなり。まして雁のおほく飛つらねたる。いとちいさく見ゆるはいとおかし。日いりはてゝ後。風のをと。むしの聲。はたいふべきにもあらずめでたし。</p>
   <h2>height:40em;</h2>
    <p id="text04">冬はつとめて雪のふりたる。さらにもいはず。霜のいとしろきも。又さらねどいとさむきに。火などいそぎおこして。炭もてありきなどするを見るも。いとつきづきし。ひるになりぬれば。やうやうぬるびもてゆきて。雪もきえ。すびつ。火おけの火もしろき。はひがちになりぬればわろし。</p>
              </div>
</body>

            
          
!
            
              body {
	-webkit-writing-mode: vertical-rl;
	-ms-writing-mode: tb-rl;
	writing-mode: vertical-rl;
}

#text01,#text02,#text03,#text04{
  background-color:#ccf;
  width: 10em;
}

#text01 {
  -webkit-column-width: 8em;
  -webkit-column-gap: 2em;
  column-width: 8em;
  column-gap: 2em;
}
#text02 {
  height:10em;
  -webkit-column-width: 8em;
  -webkit-column-gap: 2em;
  column-width: 8em;
  column-gap: 2em;
}

#text03 {
  height:2em;
  -webkit-column-width: 8em;
  -webkit-column-gap: 2em;
  column-width: 8em;
  column-gap: 2em;
}

#text04 {
  height:40em;
  -webkit-column-width: 8em;
  -webkit-column-gap: 2em;
  column-width: 8em;
  column-gap: 2em;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console