123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              html {
  text-align: center;
  padding-top: 5%;
  background: #f0bd6c url("http://i1255.photobucket.com/albums/hh628/Tricia_Katz/coffeesteam_zpsnboiw6qy.png") no-repeat;
  background-size: 90px 90px;
  background-position-x: 50%;
  background-position-y: calc(100% - 170px);
}

div {
  width: 214px;
  height: 150px;
  margin: 0 auto;
  margin-top: 8%;
background-image: linear-gradient(to right, #775263 5px, #775263 20px, transparent 1px, transparent 25px, #775263 5px, #775263 182px, transparent 20px, transparent 186px, #775263 45px, #775263 201px, transparent 25px, transparent 206px, #775263 40px, #775263 205px);
background-position: left bottom;
background-size: 295px 6px;
background-repeat: repeat-x; 
}

div:before, div:after{
  position:absolute;
  display: block;
}

div:before {
  content: "";
  box-sizing: border-box;
  margin-left: 120px;
  margin-top: 40px;
  width: 95px;
  height: 65px;
  border-radius: 20px 2px 70px 70px;
  border: 8px solid #eeeeee;
  border-top-color: #eeeeeee;
  border-bottom-color: #eeeeee;
  box-shadow: inset 0 0 0 5px #775263, 0 0 0 15px white, 0 0 0 20px #775263;
}

div:after{
  content: 'x';
  font-size: 19px;
  margin-left: 32px;
  font-family: comic sans ms;
  line-height: 1;
  font-weight: bold;
  color: white;
  text-shadow: rgb(240, 189, 108) -107px 5px 2px, rgb(240, 189, 108) -111px 5px 2px, rgb(240, 189, 108) -105px 23px 2px, rgb(240, 189, 108) -121px 23px 2px, rgb(240, 189, 108) -100px 50px 2px, rgb(240, 189, 108) -116px 50px 2px, rgb(240, 189, 108) -118px 67px 2px, rgb(240, 189, 108) -102px 67px 2px, rgb(240, 189, 108) 88px -64px 2px, rgb(240, 189, 108) 87px -48px 2px, rgb(240, 189, 108) 103px -62px 2px, rgb(240, 189, 108) 103px -46px 2px, rgb(240, 189, 108) 118px -61px 2px, rgb(240, 189, 108) 119px -79px 2px, rgb(240, 189, 108) 103px -79px 2px, rgb(249, 211, 150) -112px 14px 1px, rgb(249, 211, 150) -137px 40px 1px, rgb(249, 211, 150) -109px 58px 1px, rgb(249, 211, 150) 95px -55px 1px, rgb(249, 211, 150) 110px -70px 1px, rgb(249, 211, 150) 129px 84px 1px;
  width:100px;
  height:100px;
  background:#f4745f;
  border: 5px solid #775263;
  padding:20px;
  border-radius: 5px 5px 30px 30px;
  background-image: linear-gradient(to right, white 10%, transparent 10%), linear-gradient(to left, #eeeeee 30%, white 5px, white 35px, white 90px, transparent 10%), linear-gradient(to bottom, transparent 8px, transparent 15px, #775263 10px, #775263 20px, transparent 20px, transparent 52px, #775263 10px, #775263 57px, white 5%), linear-gradient(to left, #eeeeee 35px, transparent 50px, transparent 106px, #775263 5px, #775263 111px, transparent 65px, transparent 104px, transparent 95px, transparent 121px, transparent 110px, transparent 5px, transparent 135px, transparent 135px), linear-gradient(to bottom, white 8px, white 15px, #775263 10px, #775263 20px, transparent 20px, transparent 52px, #775263 10px, #775263 57px, transparent 5%), linear-gradient(to top, white 60%, transparent 60%), linear-gradient(to left, #eeeeee 35px, white 50px, white 90px, #775263 5px, #775263 95px, #775263 65px, #775263 106px, #f7aa40 95px, #f7aa40 121px, #f7aa40 110px, #775263 5px, #775263 135px, transparent 135px);
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console