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 id="wrapper">
  <div class="exclaimer">
    <h2>flat with dimension</h2>
    referencing <a class="link" href="http://blog.invisionapp.com/how-to-make-the-perfect-diffused-drop-shadow/">how to make the perfect diffused drop shadow </a> by InVision
    <div class="byline">by <a href="https://codepen.io/mefynn/">@mefynn</a></div>
  <div class="button">click me</div>
              @import url(https://fonts.googleapis.com/css?family=Open+Sans);

$color: #8CABD9;

body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  font-family: 'Open Sans';


#wrapper {
  height: 100%;
  width: 100%;
  background-color: lighten(#ac9d9a,50%);
  position: relative;
  z-index: 0;

.button {
  height: 100px;
  width: 400px;
  background-color: $color;
  margin: 5rem auto;
  box-shadow: 0 25px 40px -20px shade($color, 5%);
  text-align: center;
  padding-top: 27px;
  color: #ffffff;
  font-size: 2em;
  box-sizing: border-box;
  cursor: pointer;    
  transition: box-shadow .4s;

  &:hover {
    box-shadow: 0 30px 50px -20px shade($color, 5%);
  &.click {
    transition: all .2s;
    box-shadow: 0 0 1px -10px shade($color, 40%);

h2 {
  color: shade($color, 30%);
a {
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 0px solid shade($color, 30%);
  transition: all .07s .04s;
    border-width: 0 0 4px;
.exclaimer {
  padding: 2rem 2rem 0;
  text-align: center;
.link {
  color: shade($color, 10%);  
.byline {
  font-size: .8em;
  padding-top: 1em;
  color: #555;
  a {
    color: #555;
              $('.button').on('touchstart mousedown',function(){
$('.button').on('touchend mouseup',function(){

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