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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <h1>『日本沈没(Japan Sinks)』小松左京著</h1>
<h2>どのような小説なのか</h2>
<h3>日本沈没の物語について</h3>
<h4>主人公:小野寺俊夫とは</h4>
<p>深海潜水艇の操艇者。30代。潜水士と海技士の資格を持つ。当初は海底開発KKに勤めていたが、後にD-1計画に引き抜かれる(身分的には臨時雇)。戦後生まれで、出世や組織の属する事、国家に対しても興味がなく、純粋に海が好きで潜水艇を操縦しており、その性格を田所に早々と見抜かれて海洋研究で本格的に力を貸す。<br>A deep-sea submersible operator. He is in his thirties. He is a qualified diver and mariner. He was born after the war, and he has no interest in career advancement, organization affiliation, or nation. He is purely fond of the sea and operates a submersible, and his personality was quickly spotted by Tadokoro, and he fully assisted in marine research.</p>
              
            
!

CSS

              
                html{
  font-size: 100%;
}
body{
  font-size: 112.5%;
  line-height: 1.55556;
  font-family: Meiryo, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', system-ui, sans-serif;
  color: #333;
  line-height: 1.5;
  width: 910px;
  margin: 60px auto 0;
  padding: 0 15px;
}
h1, h2, h3, h4 {
  color: #000;
  font-weight: bold;
  text-align: center;
}
h1 {
  font-size: 250%;
  line-height: 1.3;
}
h2{
  font-size: 200%;
  line-height: 1.3125;
}
h3{
  font-size: 175%;
  line-height: 1.35714;
}
h4{
  font-size: 150%;
  line-height: 1.41667
}
p{
  
}
              
            
!

JS

              
                
              
            
!
999px

Console