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="title">
    <h2>Drag me</h2>
  <div class="content">
    <p>Thoughtfully redesigning OS X meant going deep into every aspect of the interface and focusing on details large and small. There are obvious changes to big things, like translucency in windows and streamlined toolbars. And there are more subtle changes to a lot of small things, like the buttons, icons, and font you see throughout the system. The more you use your Mac, the more you’ll notice, and the more you’ll love it.</p>
    <p>By adding translucency to certain interface elements in OS X Yosemite, we’ve put a greater emphasis on your content. Translucent toolbars let you know there’s more to see than what’s visible in the window as you scroll. And a translucent sidebar lets you see what’s hidden behind the active window. So the interface takes on the look of your desktop image and your content — making your Mac experience different from anyone else’s.</p>
    <p class="small">Source: <a href="https://www.apple.com/osx/preview/design/">Apple</a></p>

<div class="attr">
  <h6>Photo by DAVID ILIFF. License: CC-BY-SA 3.0</h6>
              *, *:before {
  box-sizing: border-box;
  position: relative;

html, body {
  margin: 0;
  padding: 0;

body {
  background: url('http://upload.wikimedia.org/wikipedia/commons/d/d6/Half_Dome_from_Glacier_Point%2C_Yosemite_NP_-_Diliff.jpg') 50% no-repeat fixed;
  background-size: cover;
  font: 14px/1.4 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;

h2 {
  font-size: 1.4em;
  font-weight: 300;
  color: #222;
p:not(:last-child) {
  margin-bottom: 0.6em;
p.small {
  font-size: 0.8em;
  color: #222;
  text-align: center;
a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #888;

article {
  width: 300px;
  position: absolute;
  top: 40px;
  left: 40px;
  background: inherit;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  overflow: hidden;

  &:before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: inherit;
    filter: blur(10px) saturate(2);
  .title {
    padding: 8px;
    background: rgba(235,235,235,0.85);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    &:hover {
      cursor: move;
  .content {
    padding: 8px;
    background: rgba(255,255,255,0.66);

.attr {
  position: fixed;
  right: 5px;
  bottom: 5px;
  font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
  font-size: 0.8em;
  font-weight: normal;
  color: white;
Loading ..................