cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmloctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="container">

<h3>Formの基本構造</h3>
<br>
<form>
  <!-- .form-groupはパーツを最適な間隔で並べる -->
  <div class="form-group">
    <label>Name</label>
    <input type="text" class="form-control" placeholder="Name">
  </div>
  <button type="submit" class="btn btn-default">送信</button>
</form>

<hr style="margin: 40px 0;">

<h3>Form Inline</h3>
<br>
<form class="form-inline">
  <div class="form-group">
    <input type="email" class="form-control" placeholder="メール" id="mail">
  </div>
  <div class="form-group">
    <input type="password" class="form-control" placeholder="パスワード" id="pass">
  </div>
  <div class="checkbox">
    <label>
      <input type="checkbox"> パスワードを記憶する
    </label>
  </div>
  <button type="submit" class="btn btn-default">サインイン</button>
</form>

<hr style="margin: 40px 0;">

<h3>Form Horizontal</h3>
<br>
<form class="form-horizontal">
  <div class="form-group">
    <label for="mail2" class="col-sm-2 control-label">メール</label>
    <div class="col-sm-10">
      <input type="email" class="form-control" id="mail2" placeholder="メール">
    </div>
  </div>
  <div class="form-group">
    <label for="pass2" class="col-sm-2 control-label">パスワード</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="pass2" placeholder="パスワード">
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <div class="checkbox">
        <label>
          <input type="checkbox"> パスワードを記憶する
        </label>
      </div>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">サインイン</button>
    </div>
  </div>
</form>
  
<hr style="margin: 40px 0;">
  
<h3>Static Control</h3>
<br>
<form class="form-horizontal">
  <div class="form-group">
    <label class="col-sm-2 control-label">メール</label>
    <div class="col-sm-10">
      <p class="form-control-static">email@example.com</p>
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword" class="col-sm-2 control-label">パスワード</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="inputPassword" placeholder="パスワード">
    </div>
  </div>
</form>

<hr style="margin: 40px 0;">

<h3>Disabled</h3>
<br>
<input disabled type="text" id="input" class="form-control" placeholder="Disabled input">
<br>
<h3>Disabled with fieldset</h3>
<br>
<form>
  <fieldset disabled>
    <div class="form-group">
      <label for="input">Disabled input</label>
      <input type="text" id="input" class="form-control" placeholder="Disabled input">
    </div>
    <div class="form-group">
      <label for="select">Disabled select menu</label>
      <select id="select" class="form-control">
        <option>Disabled select</option>
      </select>
    </div>
    <div class="checkbox">
      <label>
        <input type="checkbox"> Can't check this
      </label>
    </div>
    <button type="submit" class="btn btn-primary">Submit</button>
  </fieldset>
</form>

<hr style="margin: 40px 0;">
  
<h3>Readonly</h3>
<br>
<input class="form-control" type="text" placeholder="読み取り専用の内容" readonly>

<hr style="margin: 40px 0;">
  
<h3>Validation</h3>
<br>
<div class="form-group has-success has-feedback">
  <label class="control-label" for="inputSuccess1">成功!</label>
  <input type="text" class="form-control" id="inputSuccess1" aria-describedby="helpBlock2">
  <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
  <span id="helpBlock2" class="help-block">ヘルプテキスト。フォームの説明文や注意書きを記述。</span>
</div>
<div class="form-group has-warning has-feedback">
  <label class="control-label" for="inputWarning1">注意!</label>
  <input type="text" class="form-control" id="inputWarning1">
  <span class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden="true"></span>
</div>
<div class="form-group has-error has-feedback">
  <label class="control-label" for="inputError1">エラー警告!</label>
  <input type="text" class="form-control" id="inputError1">
  <span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden="true"></span>
</div>
<div class="has-success">
  <div class="checkbox">
    <label>
      <input type="checkbox" id="checkboxSuccess" value="option1">
      成功チェックボックス
    </label>
  </div>
</div>
<div class="has-warning">
  <div class="checkbox">
    <label>
      <input type="checkbox" id="checkboxWarning" value="option1">
      注意チェックボックス
    </label>
  </div>
</div>
<div class="has-error">
  <div class="checkbox">
    <label>
      <input type="checkbox" id="checkboxError" value="option1">
      エラーチェックボックス
    </label>
  </div>
</div>

<hr style="margin: 40px 0;">

<h3>Form Size</h3>
<br>
<!-- form-control -->
<input class="form-control input-lg" type="text" placeholder=".input-lg">
  <br>
<input class="form-control" type="text" placeholder="通常サイズ">
  <br>
<input class="form-control input-sm" type="text" placeholder=".input-sm">
<br>
<!-- form-group -->
<form class="form-horizontal">
  <div class="form-group form-group-lg">
    <label class="col-sm-2 control-label" for="formGroupInputLarge">大きいラベル</label>
    <div class="col-sm-10">
      <input class="form-control" type="text" id="formGroupInputLarge" placeholder="大きいサイズ">
    </div>
  </div>
  <div class="form-group form-group-sm">
    <label class="col-sm-2 control-label" for="formGroupInputSmall">小さいラベル</label>
    <div class="col-sm-10">
      <input class="form-control" type="text" id="formGroupInputSmall" placeholder="小さいサイズ">
    </div>
  </div>
</form>
<hr style="margin: 40px 0;">
</div>
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console