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="balloon-shadow-line">ふきだし</div>
<div class="balloon-shadow-line round">ふきだし角丸</div>
              
            
!

CSS

              
                body {
  padding: 20px;
}
.balloon-shadow-line {
  position: relative; /* 三角の位置を固定するために設定 */
  width: 300px; /* 幅 */
  margin: 0 auto 40px; /* 上 左右 下のマージン */
  padding: 20px; /* ふきだし内の余白 */
  background: #fff; /* 背景色 */
  border: 1px solid #ddd;
  text-align: center; /* テキストの揃え */
  box-shadow: 3px 3px 3px rgba(0,0,0,0.3);
}
.balloon-shadow-line::before,
.balloon-shadow-line::after {
  content: '';
  width: 20px; /* 影をつけるために線幅で設定せずにboxを使用する */
  height: 20px;
  transform: rotate(45deg);
  position: absolute;
  left: 50%;
  margin-left: -10px;
}
.balloon-shadow-line::before {
  background: #ddd; /* 吹き出しの線と同じ色 */
  bottom: -10px;
  box-shadow: 3px 3px 3px rgba(0,0,0,0.3);
}
.balloon-shadow-line::after {
  background: #fff; /* 吹き出しの地と同じ色 */
  bottom: -9px; /* 線の太さだけずらす */
}

.round {
  border-radius: 8px;
}
              
            
!

JS

              
                
              
            
!
999px

Console