Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="select-area">
  <select>
    <option value="0" selected disabled>選択してください</option>
    <option value="40">福岡県</option>
    <option value="41">佐賀県</option>
    <option value="42">長崎県</option>
    <option value="43">熊本県</option>
    <option value="44">大分県</option>
    <option value="45">宮崎県</option>
    <option value="46">鹿児島県</option>
    <option value="47">沖縄県</option>
  </select>
</div>
              
            
!

CSS

              
                /* フォーカスが当たった時の青枠を表示しない */
*:focus {
  outline: none;
}

div.select-area {
  position: relative;
}

div.select-area select {
  /* 位置 */
  position: absolute;
  left: 5px;
  /* select要素のデザインを無効 */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* 枠線 */
  border: none;
  border-radius: 0;
  border-bottom: solid 1px rgba(0, 0, 0, 0.4);
  /* 文字サイズ */
  font-size: 16px;
  width: 200px;
  padding: 5px;
  margin: 0;
}

/* select要素のデザインを無効(もう必要はないかもだけど、、、) */
select:-ms-expand {
  display: none;
}

/* "選択してください"は表示しない */
option[selected][disabled] {
  display: none;
}

/* プルダウンの下矢印 */
div.select-area:after {
  /* 下矢印 */
  font-family:'Font Awesome 5 Free';
  content: "\f107";
  font-weight: 600;
  font-size:18px;
  color: rgba(0, 0, 0, 0.4);
  /* 位置 */
  position: absolute;
  top: 3px;
  left: 190px;
  /* ▼部分をクリックしてもプルダウンが表示されるようにする */
  pointer-events: none;
}
              
            
!

JS

              
                
              
            
!
999px

Console