Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <div class="form-group">
              <div class="form-group__house">
                <label for="my-select">Номер</label>
                <select id="my-select" class="custom-select">
                  <optgroup label="-- Выберите номер --">
                  <option class="custom-select_option" value="1">Коттедж "Деревенский" 2 этаж</option>
                  <option class="custom-select_option" value="2">Дом «Охотника» пн-чт</option>
                  <option class="custom-select_option" value="3">Дом «Охотника» пт-вс, праздничные дни</option>
                  <option class="custom-select_option" value="4">Дом «Лесника с баней»</option>
                  <option class="custom-select_option" value="5">Дом «Рыбака с баней»</option>
                  <option class="custom-select_option" value="6">Аренда парной 3 часа</option>
                  <option class="custom-select_option" value="7">Аренда парной 4 часа</option>
                  <option class="custom-select_option" value="8">Аренда парной 5 часов</option>
                  <option class="custom-select_option" value="9">1 этаж коттедж «Уютный»</option>
                  <option class="custom-select_option" value="10">2 этаж коттедж «Уютный»</option>
                  <option class="custom-select_option" value="11">1 этаж коттедж «Деревенский»</option>
                  <option class="custom-select_option" value="12">2 этаж коттедж «Деревенский»</option>
                  </optgroup>
                </select>
              </div>
            </div>
              
            
!

CSS

              
                .form-group
  display: inline-block
  vertical-align: top
  overflow: hidden
  max-width: 100%
  width: 440px
  box-sizing: content-box
  option
    color: #7e817f
    box-sizing: content-box
    filter: hue-rotate(125deg)
    font-size: 14px!important
    padding: 10px
    select 
      max-width: 100%
      border: none
      box-sizing: content-box
      color: #7e817f
      width: 410px
      outline: none
      padding: 12px
      border: 2px solid #E1E1E1
      optgroup 
        font-weight: normal
        font-style: normal
        color: #848484
        font-size: 14px
form-group__house__house
  display: flex
  flex-direction: column
  margin-right: 20px
  margin-bottom: 23px
.custom-select
  flex-basis: 100%
  padding: 10px
  max-width: 500px
  border-radius: 5px
  border: 2px solid #E1E1E1
  outline: none
  -webkit-appearance: none
  -moz-appearance: none
  appearance: none
  position: relative
              
            
!

JS

              
                
              
            
!
999px

Console