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

Packages

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.

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

              
                <div class="old-timey" />
              
            
!

CSS

              
                .old-timey {
  height: 150px;
  width: 550px;
  background-color: silver;
  position: absolute;
  left: 120px;
  top: 40px;
  border-radius: 100%;
  border-top-right-radius: 50%;
  border-top-left-radius: 100%;
  border-bottom-right-radius: 30%;
  border-bottom-left-radius: 35%;
  
background: /* On "top" */
  linear-gradient(
    90deg,
    transparent,
    transparent 75px,
    #000 75px,
    #000 77px,
    transparent 77px,
    transparent 270px,
    #000 270px,
    #000 272px,
    transparent 272px,
    transparent 500px,
    #000 500px,
    #000 501px,
    transparent 502px,
    transparent 520px,
    #aaa 520px,
    #aaa 540px,
    #000 540px
  ),
    linear-gradient(
    180deg,
    transparent,
    transparent 121px,
    #000 121px,
    #000 123px,
    transparent 123px
  ),
    linear-gradient(
    to bottom,
    #f00,
    #000
  );

}

.old-timey::before {
  content: 
    '\A\A\A\000a0 85';
  font-size: xxx-large;
  font-weight: bold;
  height: 75px;
  width: 75px;
  background-color: #ddd;
  border-radius: 100%;
  position: absolute;
  top: 15px;
  left: 370px;
  box-shadow: -310px 90px 0px 0px #aaa,
    -310px 90px 11px 8px black,
    -310px 90px 11px 8px #eee,
    -310px 90px 0px 17px black,

  120px 90px 0px 0px #aaa,
    120px 90px 11px 8px black,
    120px 90px 12px 8px #eee,
    120px 90px 0px 17px black;
}

.old-timey::after {
  content: '\000a0\000a0\000a0\000a0\000a0\000a0\22CC';
  font-size: xxx-large;
  font-weight: bold;
  height: 90px;
  width: 120px;
  background-color: #fff;
  border-top-right-radius: 20%;
  border-top-left-radius: 20%;
  border-bottom-right-radius: 100%;
  border-bottom-left-radius: 40%;
  position: absolute;
  top: 4px;
  left: 130px;
}
              
            
!

JS

              
                  box-shadow: 11px 14px 0 3px black,
    16px -6px 0 3px black,
    0px -18px 0 3px black,
    -16px -6px 0 3px black,    
    -11px 14px 0 3px black,
    
    0 0 0px 25px #aaa,
    0 0 0px 30px #ccc,
    0 0 11px 33px black,
    0 0 15px 45px #eee,
    0 0 0px 45px black,
    
    54px 14px 0 3px black,
    16px -6px 0 3px black,
    0px -18px 0 3px black,
    -16px -6px 0 3px black,    
    -11px 14px 0 3px black,
    
    11px 14px 0 3px black,
    16px -6px 0 3px black,
    0px -18px 0 3px black,
    -16px -6px 0 3px black,    
    -11px 14px 0 3px black,        
    
    430px 0 0px 25px #aaa,
    430px 0 0px 30px #ccc,
    430px 0 11px 33px black,
    430px 0 15px 45px #eee,
    430px 0 0px 45px black;
  /* on "bottom" */
  linear-gradient(
    to bottom,
    #f00,
    #000
  );;
              
            
!
999px

Console