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


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.


                <div class="blur_bg">
  <option value="1">TODOS</option>
  <option value="2">Algunos</option>
  <option value="3">Otros más largos</option>


                @import "compass/css3";

$border_color: #107177;
$image_bg: '';
$margin_top: 10em;

body {
  text-align: center;
  background: url($image_bg) no-repeat;
  background-size: cover;

//Blur background, just for fun

$blur: 4px;

.blur_bg {
  padding: 4em 0;
  margin-top: $margin_top;
  position: relative;
  background: #000;
  &:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:  url($image_bg) no-repeat;
    background-size: cover;
    background-position: 0 (-$margin_top);
    @include filter(blur($blur));
    opacity: 0.6;
    // To eliminate the blur borders
    padding: $blur * 2;
    top: -($blur * 2);
    left: -($blur * 2);

select {
  @include appearance(none);
  // Remove Arrow in FF, thanks to @joaocunha
  text-indent: 0.01px;
  text-overflow: '';
  padding: 1em 0 1em 1em;
  /* Targetting Webkit browsers only. FF will show the dropdown arrow with so much padding.
  via: */
  @media screen and (-webkit-min-device-pixel-ratio:0) {
  border: 1px solid $border_color;
  border-radius: 0;
  position: relative;
  border-right-width: 20px;
  background-color: rgba(#000, 0.5);
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  &:focus {
    outline: none;
    border-color: lighten($border_color, 10%);
label {
  position: relative;
  // For FF alignment
  display: inline-block;
  &:after {
    display: block;
    content: "▾";
    font-size: 20px;
    width: 20px;
    position: absolute;
    height: 20px;
    top: 50%;
    margin-top: -14px;
    right: 0;
    color: #fff;
    pointer-events: none;