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 {
  height: 400px;
  width: 600px;
  background: #292a2b;
  margin: 50px auto;
  border-radius: .5px .5px 0 0;
  box-shadow: 0 0 0 35px #000, 0 0 0 38px darkgray;
  position: relative;
  background-image: linear-gradient(-30deg, transparent 0px, transparent 26px, #9d9ea3 26px, #dfe0e2 27px, transparent 27px, transparent 73px, #626367 73px, #626367 74px, transparent 177px), linear-gradient(-30deg, #636468 0px, #9d9ea3 16px, #dfe0e2 16px, #626367 17px, transparent 17px), linear-gradient(-30deg, #636468 1px, #f7f7f7 10px, #f7f7f7 20px, transparent 40px, transparent 500px, #949698 820px, #949698 860px, #f7f7f7 880px, #f7f7f7 890px, #636468 899px);
}

div:before {
  content: '\0000a0\0000a0\0000a0';
  text-decoration: overline;
  color: black;
  line-height: 80px;
  padding-left: 820px;
  font-size: 42px;
  height: 50px;
  width: 80px;
  background: #d9dadc;
-webkit-box-reflect: 
      below 0px 
      -webkit-gradient(linear, left top, left bottom, 
         from(transparent), color-stop(5, transparent), to(white));
  -moz-box-reflect: below 0 -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(250, 250, 250, 0.1)));
  background-image: linear-gradient(to top, black 0px, #636468 2px, #9d9ea3 16px, #dfe0e2 16px, #626367 17px, #626367 18px, transparent 18px), linear-gradient(to right, #636468 1px, #f7f7f7 10px, #f7f7f7 20px, transparent 40px, transparent 500px, #949698 820px, #949698 860px, #f7f7f7 880px, #f7f7f7 890px, #636468 899px);
  position: absolute;
  top: 430px;
  margin: 20 auto;
  left: -150px;
  border-bottom: 3px solid violet;
  border-bottom-right-radius: 12% 45%;
  border-bottom-left-radius: 12% 45%;
  border-image: linear-gradient(to bottom, yellow, rgba(0, 0, 0, 1)) 20 10%;
  z-index: 9999;
  border-image-repeat: stretch;
}

div:after {
  content: '\0000a0\0000a0\0000a0\0000a0\0000a0\0000a0\0000a0\0000a0\0000a0\0000a0\0000a0\0000a0\0000a0\0000a0o\A\A\A\A\A\A\A\A\A\A\A\A\A\A\A\A\A\A\A\A\A\A\A\0000a0\0000a0\0000a0\0000a0\0000a0MacBook Pro';
  white-space: pre;
  color: grey;
  height: 480px;
  width: 140px;
  background: transparent;
  background-image: linear-gradient(to top, transparent 7px, rgba(222, 222, 222, .3) 9px, transparent 19px), linear-gradient(to top, #636468 7px, transparent 19px);
  border-radius: 0 0 20px 20px;
  position: absolute;
  top: -30px;
  left: 240px;
  z-index: 9999;
}
            
          
!
999px
Close

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.

Go PRO

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

Console