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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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">Formの基本形</h1>
  <form class="mb-5">
    <div class="form-group">
      <label for="mail1">メールアドレス</label>
      <input type="email" class="form-control" id="mail1" placeholder="メールアドレス">
      <small id="emailHelp" class="form-text text-muted">私たちはあなたのメールを誰とも共有しません。</small>
    </div>
    <div class="form-group">
      <label for="password1">パスワード</label>
      <input type="password" class="form-control" id="password1" placeholder="パスワード">
    </div>
    <div class="form-group form-check">
      <input type="checkbox" class="form-check-input" id="check1">
      <label class="form-check-label" for="check1">規約に同意する</label>
    </div>
    <button type="submit" class="btn btn-primary">送信</button>
  </form>
</div>

<hr>

<div class="container">
  <h1 class="h3 mb-4">フォームのサイズを変更する</h1>

  <!-- 入力フォームのサイズ変更 -->
  <h1 class="h5 mb-4">入力フォームのサイズ変更</h1>
  <input class="form-control form-control-lg" type="text" placeholder="大きいフォーム">
  <br>
  <input class="form-control" type="text" placeholder="通常フォーム">
  <br>
  <input class="form-control form-control-sm" type="text" placeholder="小さいフォーム">

  <!-- 選択フォームのサイズ変更 -->
  <h1 class="h5 my-4">選択フォームのサイズ変更</h1>
  <select class="form-control form-control-lg">
    <option>大きい選択</option>
  </select>
  <br>
  <select class="form-control">
    <option>通常の選択</option>
  </select>
  <br>
  <select class="form-control form-control-sm">
    <option>小さい選択</option>
  </select>
</div>

<hr>

<div class="container">
  <h1 class="h3 mb-4">フォームレイアウトの作り方</h1>

  <!-- 入力フォームを2列で表示 -->
  <h1 class="h5 mb-4">入力フォームを2列で表示</h1>
  <form class="mb-5">
    <div class="form-row">
      <div class="form-group col-md-6">
        <label for="mail2">メールアドレス</label>
        <input type="email" class="form-control" id="mail2" placeholder="メールアドレス">
        <small id="emailHelp" class="form-text text-muted">私たちはあなたのメールを誰とも共有しません。</small>
      </div>
      <div class="form-group col-md-6">
        <label for="password2">パスワード</label>
        <input type="password" class="form-control" id="password2" placeholder="パスワード">
      </div>
    </div>
    <div class="form-group form-check">
      <input type="checkbox" class="form-check-input" id="check1">
      <label class="form-check-label" for="check1">規約に同意する</label>
    </div>
    <button type="submit" class="btn btn-primary">送信</button>
  </form>

  <!-- ラベルを入力フォームの横に表示 -->
  <h1 class="h5 mb-4">ラベルを入力フォームの横に表示</h1>
  <form class="mb-5">
    <div class="form-group row">
      <label for="mail3" class="col-sm-2 col-form-label">メールアドレス</label>
      <div class="col-sm-10">
        <input type="email" class="form-control" id="mail3" placeholder="メールアドレス">
      </div>
    </div>
    <div class="form-group row">
      <label for="password3" class="col-sm-2 col-form-label">パスワード</label>
      <div class="col-sm-10">
        <input type="password" class="form-control" id="password3" placeholder="パスワード">
      </div>
    </div>
  </form>
</div>

<hr>



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

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console