Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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 = "book">
</div>
              
            
!

CSS

              
                *{
  margin:0;
  padding:0;
  position: absolute;
}
html, body{
  height: 100%;
  width: 100%;
  overflow: hidden;
}
body{
  background: #FFC967;
}
*, *:before, *:after { 
  box-sizing: inherit; 
}
*:before, *:after { 
  content: ""; 
  position: absolute; 
} 
.book{
  width:280px;
  height:420px;
  transform: translate(-50%, -50%);
  top:50%;
  left: 50%;  
  background: #F33139;
  border-radius: 20px 16px 12px 32px;
  background-image: linear-gradient(to right,#D11F2F 48px, #ba0716 50px, transparent 50px);  
   //box-shadow:  2px 6px 40px 0px #FEA600
}
.book:after{
  height: 52px;
  width: 274px; 
  bottom: 6px;
  right:0px;
  background: white;
  border-radius: 32px 4px 4px 32px;
  box-shadow: inset 4px 6px 0px 0px #E4E0CE;  
  background-image: linear-gradient(to bottom, transparent 6px, #E4E0CE 8px, transparent 8px, transparent 12px, #E4E0CE 12px, transparent 14px, transparent 18px,#E4E0CE 18px, transparent 20px, transparent 24px, #E4E0CE 24px, transparent 26px, transparent 30px, #E4E0CE 30px, transparent 32px, transparent 36px, #E4E0CE 36px, transparent 38px, transparent 42px, #E4E0CE 42px, transparent 44px, transparent 48px, #E4E0CE 48px, transparent 50px);     
}
.book:before{
  height: 20px;
  width: 160px; 
  right: 40px;
  top: 72px; 
  background:#D11F2F;
  border-radius: 20px;
  box-shadow: 0px 36px #D11F2F;
    
}

              
            
!

JS

              
                
              
            
!
999px

Console