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

              
                <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <!-- Bootstrap CSS -->
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  <title>Document</title>
</head>
<body class="py-5">

<div class="container">
  <h1 class="h3 mb-4">画像の形やスタイルを変更する</h1>
  <!-- レスポンシブ対応 -->
  <img src="https://placehold.it/1200x300" class="img-fluid mb-3" alt="レスポンシブ対応">

  <!-- 画像を角丸に -->
  <img src="https://placehold.it/400x300" class="rounded mb-3" alt="画像を角丸に">

  <!-- 画像を円に -->
  <img src="https://placehold.it/400x400" class="rounded-circle mb-3" alt="画像を円に">

  <!-- 画像をサムネイル化 -->
  <img src="https://placehold.it/400x300" class="img-thumbnail mb-3" alt="画像をサムネイル化">

  <!-- 画像に線を追加 -->
  <img src="https://placehold.it/400x300" class="border mb-3" alt="画像に線を追加">
</div>

<hr>

<div class="container">
  <h1 class="h3 mb-4">Figuresのキャプション位置を変更する</h1>
  <figure class="figure">
    <img src="https://placehold.it/400x300" class="figure-img img-fluid" alt="キャプション付き画像">
    <figcaption class="figure-caption">画像のキャプション</figcaption>
  </figure>

  <!-- 中央寄せ -->
  <figure class="figure">
    <img src="https://placehold.it/400x300" class="figure-img img-fluid" alt="キャプション付き画像">
    <figcaption class="figure-caption text-center">画像のキャプション中央寄せ</figcaption>
  </figure>

  <!-- 右寄せ -->
  <figure class="figure">
    <img src="https://placehold.it/400x300" class="figure-img img-fluid" alt="キャプション付き画像">
    <figcaption class="figure-caption text-right">画像のキャプション右寄せ</figcaption>
  </figure>
</div>

<hr>


</div>
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console