cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

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

Code Indentation


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.

  <div class="wrapper">
   xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
   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>");

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