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="wrapper">
   xmlns="" xmlns:xlink="" xmlns:a=""
   x="0px" y="0px" width="27px" height="27px" viewBox="-6 -4 27 27" enable-background="new -2.917 -1.75 27 27"
<path class="logo" fill="#3A3026" d="M10.583,0C4.738,0,0,4.888,0,10.917c0,6.027,4.738,10.916,10.583,10.916c5.844,0,10.584-4.889,10.584-10.916
  C21.167,4.888,16.427,0,10.583,0z M13.098,14.933c-0.2,0.781-0.644,1.525-1.334,2.23c-0.751,0.782-1.503,1.174-2.254,1.174
  c0.215,0.015,0.308,0.138,0.278,0.368V14.933z M13.086,4.605c-0.222,0.215-0.495,0.322-0.816,0.322s-0.594-0.107-0.816-0.322
Push Them Buttons</h2>
  <div class="pad">
  </div><!-- pad -->
  </div><!-- wrapper -->


                @import "compass/css3";

$bodyColor1:#bde151; // h1 green 
$bodyColor2:#5c4c3e; // body brown
$bodyColor3:#3a3026; // h2 drk brown
$bodyColor4:#493d31; // key drkr brown
$bodyColor5:#4c3f33; // border brown
$bodyColor6:#3e342b; // key top brown

body {
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.2);
    background-color: $bodyColor2;
    font-family: Futura, "Trebuchet MS", Arial, sans-serif;
    padding: 50px 100px;
    width: 98%;

.wrapper {
        width: 600px;
        margin: 0 auto 2rem auto;

header {
    h1 {
        color: $bodyColor1;
        font-size: 4em;
        font-weight: lighter;
        letter-spacing: 10px;
        margin-left: -40px;
    h2 {
       color: $bodyColor3;
       font-size: 2em;
       margin-bottom: 10px; 
       font-weight: lighter;
       font-family: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif;  


.logo {
       -webkit-svg-shadow: 0px 1px 1px rgba(255, 255, 255, 0.2);
       -moz-svg-shadow: 0px 1px 1px rgba(255, 255, 255, 0.2);
       svg-shadow: 0px 1px 1px rgba(255, 255, 255, 0.2);

.pad {
    padding: 0 10px;
    float: left;
    border: 1px solid hsla(0,0%,0%,.15);
    border-radius: 10px;
    box-shadow: 1px 1px 1px hsla(0,0%,100%,.2),
                inset 1px 1px 1px hsla(0,0%,100%,.2);
    ul {
        float: left;
        list-style: none;
        padding: 0;
        margin: 0;
    li {
        border: 1px solid hsla(0,0%,0%,.15);
        border-radius: 10px;
        text-align: center;
        background-color:$bodyColor4 ;
        box-shadow: 4px 4px 4px rgba(000, 000, 000, 0.6),
                inset 1px 1px 1px hsla(0,0%,100%,.2);
        color: #fff;
        white-space: nowrap;
        padding: 20px 25px;
        text-shadow: 1px 1px 1px rgba(000, 000, 000, 0.2);
        margin:20px 10px 20px 10px;
        position: relative;   
li:hover, li:focus {
li:active {
  box-shadow: 1px 0px 1px rgba(000, 000, 000, 0.4);
  @include transform(translate(3px, 3px));
li:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -5px;
  bottom: -5px;
li:active:after {
  top: -3px;
  left: -3px;
  right: -2px;
  bottom: -2px;



                var phrase = ["bebop", "boop", "whoop", "elbow", "bobby"];

$("li").click(function() {

  var rand = phrase[Math.floor(Math.random() * phrase.length)];
  $("h1").replaceWith("<h1>" + rand + "</h1>");