cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

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.

            
              <form>
  <div>
    <label>名前</label><br />
    <input type="text" class="text" size="35" value="" />
  </div>   
  <div>
    <label>メールアドレス</label><br />
    <input type="text" class="text" size="35" value="" />
  </div>
  <div>
    <label>セレクトメニュー</label><br />
    <select class="dropdown">
      <option>選択してください</option>
      <option>嬉しい</option>
      <option>楽しい</option>
      <option>大好き</option>
    </select>
  </div>
  <div>
    <input id="CheckBox1" type="checkbox" class="checkbox"/>
    <label id="Label1" for="CheckBox1" class="CheckBoxLabelClass">Checkbox 1</label>
    <input id="CheckBox2" type="checkbox" class="checkbox"/>
    <label id="Label2" for="CheckBox2" class="CheckBoxLabelClass">Checkbox 2</label>	
  </div>
  <div>
    <input id="Radio1" type="radio" class="radio" name="group1" >
    <label id="Label1" for="Radio1" class="radiolabel">Radio 1</label>
    <input id="Radio2" type="radio" class="radio" name="group1"/>
    <label id="Label2" for="Radio2" class="radiolabel">Radio 2</label>	
    <input id="Radio3" type="radio" class="radio" name="group1"/>
    <label id="Label3" for="Radio3" class="radiolabel">Radio 3</label>
  </div>
  <div>
    <label>コメント</label><br />
    <textarea cols="35" rows="7" name="comments" id="comments"></textarea>
  </div>
  <div>
    <input type="submit" class="submit" value="送信する" />
  </div>
</form>
            
          
!
            
              form {
  background: #ddd;
  width:400px;
}
form div {
  padding: 10px 20px;
}
.text, textarea, .dropdown{
	border:1px solid #777;
	padding: 5px;
	color: #999;
	background: #fff;
	border-radius: 5px;
/* Webkit */
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(#eee),
		to(#fff)
		);
	-webkit-border-radius: 5px;
	-webkit-box-shadow: 1px 1px 1px #fff;
/* Firefox */
	background: -moz-linear-gradient(
		top,
		#eee,
		#fff
		);
	-moz-border-radius: 5px;
	-moz-box-shadow: 1px 1px 1px #fff;
/* IE */
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffeeeeee,endColorstr=#ffffffff);
	zoom: 1;
}	
.submit {
	border:1px solid #777;
	padding: 4px 10px;
	color: #fff;
	cursor: pointer;
	background: #428ec9;
	border-radius: 5px;
/* Webkit */
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(#99c9e5),
		to(#428ec9)
		);
	-webkit-border-radius: 5px;
	-webkit-box-shadow: 1px 1px 1px #fff;
/* Firefox */
	background: -moz-linear-gradient(
		top,
		#99c9e5,
		#428ec9
		);
	-moz-border-radius: 5px;
	-moz-box-shadow: 1px 1px 1px #fff;
/* IE */
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff99c9e5,endColorstr=#ff428ec9);
	zoom: 1;
}
.checkbox,.radio {
	z-index: -1;
	position: absolute;
}
.CheckBoxLabelClass {
  background: url("http://www.webcreatorbox.com/sample/images/checkbox.png") no-repeat top left;
  margin-right:20px;
  padding-left:22px;
}	
.radiolabel {
  background: url("http://www.webcreatorbox.com/sample/images/radio.png") no-repeat top left;
  margin-right:20px;
  padding-left:22px;
}
.LabelSelected,.RadioSelected {
  background-position: bottom left;
}
body {
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Meiryo,"メイリオ",Helvetica,Sans-Serif;
}
            
          
!
            
              $(document).ready(function(){
  $(".checkbox").change(function(){
    if($(this).is(":checked")){
      $(this).next("label").addClass("LabelSelected");
    }else{
      $(this).next("label").removeClass("LabelSelected");
    }
  });
  $(".radio").change(function(){
    if($(this).is(":checked")){
      $(".RadioSelected:not(:checked)").removeClass("RadioSelected");
			$(this).next("label").addClass("RadioSelected");
    }
	});	
});
            
          
!
999px
Loading ..................

Console