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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!-- Left Shadow -->
<h2>Left Shadow</h2>
<div class="box shadow left-shadow">
This is a text box with left shadow. The text inside the box and the shadow are aligned. You should have at least longer paragraph to hide the shadow behind or reduce the shadow properties accordingly.</br>
  <b>Got it!!!</b>
</div></br>
<!-- Right Shadow -->
<h2>Right Shadow</h2>
<div class="box shadow right-shadow">
This is a text box with left shadow. The text inside the box and the shadow are aligned. You should have at least longer paragraph to hide the shadow behind or reduce the shadow properties accordingly.</br>
  <b>Got it!!!</b>
</div></br>
<!-- Bottom Shadow -->
<h2>Bottom Shadow</h2>
<div class="box shadow bottom-shadow">
This is a text box with left shadow. The text inside the box and the shadow are aligned. You should have at least longer paragraph to hide the shadow behind or reduce the shadow properties accordingly.</br>
  <b>Got it!!!</b>
</div></br>
<!-- Simple Shadow -->
<h2>Simple Shadow</h2>
<div class="box shadow simple-shadow">
This is a text box with left shadow. The text inside the box and the shadow are aligned. You should have at least longer paragraph to hide the shadow behind or reduce the shadow properties accordingly.</br>
  <b>Got it!!!</b>
</div></br>
              
            
!

CSS

              
                .box {
background-color:#CDDC39;
 width: 70%;
color: #333333;
border-radius: 0px;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
box-shadow: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
border: 1px solid #cccccc;
margin: 20px;
padding: 15px;
font-size: 18px;
}
.shadow {
position: relative;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

.shadow:before {
position: absolute;
z-index: -1;
display: block;
background: rgba(0, 0, 0, 0.7);
-webkit-box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.7);
-moz-box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.7);
box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.7);
content: "";
}
.left-shadow:before {
bottom: 25px;
left: 20px;
width: 60%;
height: 20px;
-webkit-box-shadow: 0 20px 20px 0px rgba(0, 0, 0, 0.7);
-moz-box-shadow: 0 20px 20px 0px rgba(0, 0, 0, 0.7);
box-shadow: 0 20px 20px 0px rgba(0, 0, 0, 0.7);
-webkit-transform: rotate(-3deg);
-moz-transform: rotate(-3deg);
-ms-transform: rotate(-3deg);
-o-transform: rotate(-3deg);
transform: rotate(-3deg);
}
.right-shadow:before {
right: 20px;
bottom: 25px;
width: 60%;
height: 20px;
-webkit-box-shadow: 0 20px 20px 0px rgba(0, 0, 0, 0.7);
-moz-box-shadow: 0 20px 20px 0px rgba(0, 0, 0, 0.7);
box-shadow: 0 20px 20px 0px rgba(0, 0, 0, 0.7);
-webkit-transform: rotate(3deg);
-moz-transform: rotate(3deg);
-ms-transform: rotate(3deg);
-o-transform: rotate(3deg);
transform: rotate(3deg);
}

.bottom-shadow:before {
right: 20px;
bottom: 0;
left: 20px;
height: 30px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}

.simple-shadow:before {
right: 20px;
bottom: 0;
left: 20px;
height: 30px;
}
              
            
!

JS

              
                
              
            
!
999px

Console