Pen Settings

via HTML Inspector

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.


              <div class="btn glossy1">

<div class="btn glossy2">

<div class="btn glossy3">


              @import compass

@mixin glossy($base-color: #676767)
    $lightnessFactor: lightness($base-color)
    $gradientOpacity: 0.05 + 0.3 * ($lightnessFactor / 100) 
    $innerglow: inset 0 0 17px rgba(255,255,190,.41)
    $dropshadow: 0 2px 1px rgba(0,0,0,.2)  
    border: solid 1px adjust-color($base-color, $lightness: 10%)
    +box-shadow($dropshadow, $innerglow )
    background-color: $base-color
    @if $lightnessFactor < 50
        // Gradient with fixed opacity
        +background-image(linear-gradient(top, rgba(white,0.15) 0, rgba(white,0.10) 50%, rgba(white,0) 51% ) )
        // Gradient with dynamic opacity
        +background-image(linear-gradient(top, rgba(white,$gradientOpacity) 0, rgba(white,$gradientOpacity - 0.05) 50%, rgba(white,0) 51% ) )

    float: left 
    width: 150px
    margin: 15px
    padding: 1rem 0.5rem
    font-size: 1rem
    text-align: center
    text-transform: uppercase
    line-height: 1em
    color: white





Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................