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.


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.


                <div class="tab-area">
  <!-- ラジオボタン(ココは非表示にする) -->
  <input type="radio" name="tab-radio" class="tab-radio" id="tab01" checked>
  <input type="radio" name="tab-radio" class="tab-radio" id="tab02">
  <input type="radio" name="tab-radio" class="tab-radio" id="tab03">
  <!-- タブメニュー -->
  <label for="tab01" class="tab-menu" id="tabMenu01">タブ1</label>
  <label for="tab02" class="tab-menu" id="tabMenu02">タブ2</label>
  <label for="tab03" class="tab-menu" id="tabMenu03">タブ3</label>
  <!-- コンテンツ -->
  <div class="tab-content-item" id="tabContent01">
  <div class="tab-content-item" id="tabContent02">
  <div class="tab-content-item" id="tabContent03">


                /* タブエリア用 */
.tab-area {
  /* 背景色 */
  background-color: #fff;
  /* 影 */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  /* 幅 */
  width: 90%;
  /* マージン */
  margin: 10px auto 0 auto;

/* ラジオボタンは非表示 */
.tab-radio {
  display: none;

/* タブのメニュー部分(label部分) */
.tab-menu {
  display: block;
  float: left;
  width: calc(100%/3);
  text-align: center;
  padding: 1em 0;
  background-color: rgba(0,0,0,.1);
  border-bottom: 3px solid #FF9999;

/* タブメニューにカーソルがある場合 */
.tab-menu:hover {
  opacity: 0.8;

/* コンテンツ */
.tab-content-item {
  /* コンテンツは非表示にしておく */
  display: none;
  /* パディング */
  padding: 1em 1em 0 1em;
  /* コンテンツに収まらない場合は非表示 */
  overflow: hidden;

/* ラジオボタンがチェックされたら、コンテンツを表示 */
#tab01:checked ~ #tabContent01,
#tab02:checked ~ #tabContent02,
#tab03:checked ~ #tabContent03{
  display: block;

/* ラジオボタンがチェックされたら、タブの色を変える */
#tab01:checked ~ #tabMenu01,
#tab02:checked ~ #tabMenu02,
#tab03:checked ~ #tabMenu03{
  background-color: #FF9999;

/* コンテンツのPタグ */
.tab-content-item p {
  padding-bottom: 1em;