Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


                <!--[if (gte IE 8)&(lte IE 9)]>
<style type="text/css">
.styled-select select { width: 110%; }
<!--[if lte IE 7]>
<style type="text/css">
.fa-sort-desc { display: none;}
<h1>Custom styled selectbox </h1>
<div class="styled-select">
     <option>Here is the first option</option>
     <option>The second option</option>
     <option>The thrid option</option>
  <span class="fa fa-sort-desc"></span>


                body { margin: 20px; }
h1 { font-size: 1.5em; }

.styled-select {
  border: 1px solid #ccc;
  box-sizing: border-box;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
.styled-select, .styled-select select { width: 240px;}
select:focus { outline: none; }
.styled-select select {
  height: 34px;
  padding: 5px 0 5px 5px;
  background: transparent;
  border: none;
  /*hide default down arrow in webkit */
  -webkit-appearance: none; 

@-moz-document url-prefix(){
  .styled-select select { width: 110%; }

.fa-sort-desc {
  position: absolute;
  top: 0;
  right: 12px;
  font-size: 24px;

 select::-ms-expand { display: none; } /* hide default down arrow in IE10*/

/* hack to fall back in opera */
_:-o-prefocus, .selector {
  .styled-select { background: none; }


                /* Works in Chrome, Firefox & IE10, fall back for IE 9-*/