Pen Settings



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


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


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.


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.


  <input type="radio" name="sample1" value="1" checked>ラジオボタン1
  <input type="radio" name="sample1" value="2">ラジオボタン2
<div class="radio-area1">
  <div class="item">
    <input type="radio" name="sample2" value="1" id="sample-1" checked>
    <label for="sample-1" class="radio-label">ラジオボタン1</label>
  <div class="item">
    <input type="radio" name="sample2" value="2" id="sample-2">
    <label for="sample-2" class="radio-label">ラジオボタン2</label>


                div.item {
  margin: 15px;
} input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: 0;
  overflow: hidden;
} {
  padding-left: 30px;
  position: relative;
  cursor: pointer;
}, {
  content: "";
  display: block;
  position: absolute;
  /* 位置調整 */
  top: 50%;
  left: 0px;
  /* 中央に揃える */
  transform: translateY(-50%);
  /* 枠線 */
  border-radius: 50%;
} {
  /* 背景色 */
  background-color: rgba(0,0,0, 0.06);
  /* 枠線 */
  border: 1.5px solid rgba(0,0,0, 0.6);
  /* サイズは調整 */
  height: 18px;
  width: 18px;
  /* 位置も調整 */
  left: 5px;
} {
  /* 背景色 */
  background-color: rgba(0,0,0, 0.6);
  /* サイズ調整 */
  height: 12px;
  width: 12px;
  /* 位置調整 */
  left: 9.5px;
  /* 通常は表示しない */
  opacity: 0;

/* チェックがついた場合 */ input[type="radio"]:checked + {
  /* 表示する */
  opacity: 1;