Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

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.

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="box">
  <div class="left">
    春宵<br/>
宋代:苏轼<br>
春宵一刻值千金,花有清香月有阴。<br/>
歌管楼台声细细,秋千院落夜沉沉。<br/></div>
  <div class="center">我是你们的唯一
  <p><a target="_blank" href="//codepen.io/weiqinl/pen/YOObve">equal-hight-layout-table</a></p>
  <p><a target="_blank" href="https://codepen.io/weiqinl/pen/eLLwNg">equal-height-layout-padding-margin-bottom</a></p>
  <p><a target="_blank" href="https://codepen.io/weiqinl/pen/qMMGPr">equal-hight-layout-flex</a></p>
  <p><a target="_blank" href="https://codepen.io/weiqinl/pen/PddxPv">equal-height-layout-float-fluid-width</a></p>
  </div>
  <div class="right">君不见,黄河之水天上来,奔流到海不复回。君不见,高堂明镜悲白发,朝如青丝暮成雪。人生得意须尽欢,莫使金樽空对月。天生我材必有用,千金散尽还复来。烹羊宰牛且为乐,会须一饮三百杯。岑夫子,丹丘生,将进酒,杯莫停。与君歌一曲,请君为我倾耳听。(倾耳听 一作:侧耳听)钟鼓馔玉不足贵,但愿长醉不复醒。(不足贵 一作:何足贵;不复醒 一作:不愿醒/不用醒)古来圣贤皆寂寞,惟有饮者留其名。(古来 一作:自古;惟 通:唯)陈王昔时宴平乐,斗酒十千恣欢谑。主人何为言少钱,径须沽取对君酌。五花马,千金裘,呼儿将出换美酒,与尔同销万古愁。——唐代·李白《将进酒》</div>
</div>
              
            
!

CSS

              
                .box {
  display: table;
}
.box > div {
  width: 30%;
  display: table-cell;
}
.left {
  background-color: greenyellow;
}
.center {
  background-color: gray;
}
.right {
  background-color: yellowgreen;
}
              
            
!

JS

              
                
              
            
!
999px

Console