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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!-- do not change the markup -->
<a href="#">
  Checkout
</a>

              
            
!

CSS

              
                /*
    
    INSTRUCTIONS

    Using CSS properties alone, recreate this button: 

        https://i.imgur.com/gnZnY.png.

    Spend no longer than 15 minutes on it, we don't 
    expect it to be a perfect match. It's open book, 
    feel free to hit Google but be prepared to 
    explain your solution.

*/
a {
   display: inline-block;
   background: #eaeaea;
   background: linear-gradient(to bottom,  #eaeaea 0%,#e0e0e0 50%,#d8d8d8 51%,#bcbcbc 100%);
   text-transform: uppercase;
   text-decoration: none;
   font-weight: bold;
   color: #555;
   font-family: arial, sans-serif;
   background-color: #bbb;
   border: 1px solid #999;
   padding: 13px 20px;
   border-radius: 12px;
   margin: 30px;
   font-size: 1.5em;
   letter-spacing: -1px;
   text-shadow: 0px 1px 0px #fafafa;
   box-shadow:
        0 1px 2px #444,
        0 0 0 7px #ccc,
        0 0 0 9px #fff,
        0 0 0 11px #999,
        0 3px 10px 8px #ccc;
}

a:before,
a:after {
  content: '★';
  color: #999;
  font-size: 1.1em;
}


              
            
!

JS

              
                
              
            
!
999px

Console