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

              
                <details>
  <summary>大鷲 - オオワシ</summary>
  <p>オオワシ(大鷲、Haliaeetus pelagicus)は、鳥綱タカ目タカ科オジロワシ属に分類される鳥類。</p>
  <img src="https://webukatu.com/wordpress/wp-content/uploads/2020/11/chris-stenger-bO3PEtEXZKA-unsplash.jpg" width="600"></img>
  <dl>
    <dd>分布</dd><dt>日本・中国北東部・韓国・北朝鮮・ロシア東部</dt>
    <dd>生態</dd><dt>海岸や河川、湖沼などに生息する。越境時は水辺の樹上で休む</dt>
  <dd>食性</dd><dt>動物性で、主に魚類を食べるが鳥類、小型~中型の哺乳類、動物の死骸なども食べる</dt>
  </dl>
</details>
              
            
!

CSS

              
                

summary {
  background: #faf0e6;
  border-bottom: solid #ffdab9 10px;
  border-right: solid #ffdab9 8px;
  border-radius: 20px;
}
summary:hover {
  margin-top: 10px;
  border-bottom: solid #ffdab9 5px;
  border-right: none;
  border-radius: 20px;
  
}

details {
  background: #faf0e6;
}

p {
  padding: 10px;
}

dl {
  padding: 20px;
}
dt {
  background: #ffdab9;
  border-radius: 20px;
  padding-left: 20px;
}

img {
  display: inline-block;
  box-shadow: 0px 0px 20px -10px rgba(0, 0, 0, 0.8);
  margin-left: 40px;
}
              
            
!

JS

              
                
              
            
!
999px

Console