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 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

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="container">
  
  <!-- Stuff that matters --> 
  <div class="select">
    <select>
      <option>Aw yeah.</option>
      <option>You should pick me instead.</option>
      <option>I think I'm the better option!</option>
    </select>
  </div>
  <!-- Stuff that matters end --> 
  
</div>
              
            
!

CSS

              
                // Select styling 

.select {
  position: relative;
  height: 47.5px;
  background: white;
  box-shadow: 0 3px 0 rgba(0,0,0,.05);
  
  &:after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    right: 10px;
    bottom: 0;
    margin: auto;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #a52c2c transparent transparent transparent;
    pointer-events: none;
  }
  
  &:before {
    width: 30px;
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    background: whitesmoke;
    content: '';
    pointer-events: none;
  }
  
  &:hover {
    &:before {
      background: #ffcfcf;
    }
  }
  
  select {
    font-size: 14px;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    height: 100%;
    width: 100%;
    cursor: pointer;
    outline: none;
    padding-right: 35px;
    padding-left: 15px;
    border: 1px solid #a52c2c;

    // Disable default styling on ff
    -moz-appearance: none;
    
    // Disable ugly ass outline on firefox 
    &:-moz-focusring {
      color: transparent;
      text-shadow: 0 0 0 #000;
    } 
    
    // Disable default styling on webkit browsers 
    -webkit-appearance: none;
    
    // Disable default arrow on IE 11+
    &::-ms-expand {
      display: none;
    }
    
    &:focus {  
      border-color: #63ffb4;    
    }
  }
}

// IE 9 only 
@media all and (min-width:0\0) and (min-resolution:.001dpcm){
  .select{ 
    select {
      padding-right: 0;
    }

    &:after, &:before {
      display: none;
    }
  }
}

// Presentation styling 

.container {
  width: 420px; //(° ͜ʖ°)
  margin: auto;
  top: 50%;
  position: relative;
  transform: translate3d(0,-50%,0);
}


body, html {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #d44747;
}
              
            
!

JS

              
                
              
            
!
999px

Console