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

              
                <h1>How to <del>remove</del> hide the select arrow in Firefox using <pre>-moz-appearance:none;</pre></h1>

<h2>More info and background:</h2>
<p>Check this cheesy <a href="https://gist.github.com/joaocunha/6273016">gist</a> for the full story.</p>

<select>
    <option>Firefox</option>
    <option>Chrome</option>
    <option>Internet Explorer</option>
    <option>Safari</option>
</select>
























<h2>It's as <del>hacky</del> simple as:</h2>

<ol>
    <li>Set <pre>-prefix-appearance</pre> to none to remove the styles;</li>
    <li>Use <pre>text-indent</pre> to "push" the content a bit to the right;</li>
    <li>Finally, set <pre>text-overflow</pre> to an empty string. Everything that extends beyond it's width will become... nothing! <strong>And that includes the arrow.</strong></li>
</ol>


<h2>Brought to you by <a href="https://twitter.com/joaocunha">@joaocunha</a></h2>
<p>Follow the guy!</p>
              
            
!

CSS

              
                @import "compass/css3";

select {
    -moz-appearance: none;
    text-indent: 0.01px;
    text-overflow: '';
}



































/*
BONUSES! In case you want to try with different browsers:

## Chrome ##
    select {
        -webkit-appearance: none;
    }

## IE10 ##
    select::-ms-expand {
        display: none;
    }

## IE < 10 ##
Not worth the effort. Code in a way you can use the native arrow.
*/





/* == general styling, nothing to do with the fix == */
body {
    font-family: helvetica, arial, sans-serif;
    font-size: 10px;
    color: #333;
}
h1 {
    font-size: 18px;
    margin-bottom: 24px;
}
h2 {
    font-size: 12px;
    margin-top: 24px;
}
pre {
    display: inline;
    background: #eee;
    font-family: courier, monospaced;
    padding: 0 5px;
}
del {
    color:#ccc;
}
li {
    margin: 10px;
}

a {
    font-weight: bold;
}
small {
    color: #ccc;
}
              
            
!

JS

              
                // sorry, nothing to see here :)
              
            
!
999px

Console