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

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="tucked-corners-top">
  <div class="tucked-corners-bottom">
    <!--  content here --> </div>
</div>
              
            
!

CSS

              
                body {
  background: #eac996 url(https://catalin.red/dist/uploads/2012/10/wood.png);
}

.tucked-corners-top {
  position: relative;
	width: 500px; min-height: 200px;
	margin: 50px auto; padding: 20px;
	background-color: #fff; /* Fallback */
	background:
		linear-gradient(45deg,  transparent 10px, #fff 10px),
		linear-gradient(-45deg, transparent 10px, #fff 10px),
		linear-gradient(225deg, transparent 10px, #fff 10px),
		linear-gradient(-225deg, transparent 10px, #fff 10px);
	background-position: bottom left, bottom right, top right, top left;
	background-size: 50% 50%;
	background-repeat: no-repeat;
	box-shadow: 0 20px 10px -20px rgba(0, 0, 0, .5);			
}

[class*='tucked-corners-']::before, /* All the four corners */
[class*='tucked-corners-']::after {
	content: '';
	content: normal\9; /* Do not show on IE9 #needed */
	position: absolute;
	height: 20px; width: 80px;
	box-shadow: 0 8px 15px -7px rgba(0, 0, 0, .5);
}

.tucked-corners-top::before, /* Top left & top right */
.tucked-corners-top::after {
	top: -10px;
}

.tucked-corners-bottom::before, /* Bottom left & bottom right */
.tucked-corners-bottom::after {
	bottom: -10px;
}		

.tucked-corners-top::before, /* Top left & bottom left */
.tucked-corners-bottom::before {
	left: -42px;
}

.tucked-corners-top::after, /* Top right & bottom right */
.tucked-corners-bottom::after {
	right: -42px;
}

.tucked-corners-top::before { /* Top left */
	transform: rotate(-45deg);
}

.tucked-corners-top::after { /* Top right */
	transform: rotate(45deg);			
}

.tucked-corners-bottom::before { /* Bottom left */
	transform: rotate(-135deg);
}

.tucked-corners-bottom::after { /* Bottom right */
	transform: rotate(135deg);
}
              
            
!

JS

              
                // CSS3 tucked corners
// https://catalin.red/css3-tucked-corners/
              
            
!
999px

Console