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

              
                



<div class="wrap" style="position:relative;">
<div class="round"></div>
  <p>By using radial gradients, you can simulate rounded corners with a negative radius. Just in this case, don't put the color stops at the exact same position, since the result will be too aliased in most browsers (and kinda still is in Webkit).
  </p>
  </div>
              
            
!

CSS

              
                /**
 * Beveled corners & negative border-radius with CSS gradients
 */
.wrap{
  width:500px;
}
p{
  position:relative;
  padding:30px;
  color:#fff;
}
div.round {    
	background: #c00; /* fallback */
	background:
		linear-gradient(135deg, transparent 10px, #c00 0) top left,
		linear-gradient(225deg, transparent 10px, #c00 0) top right,
		linear-gradient(315deg, transparent 10px, #c00 0) bottom right,
		linear-gradient(45deg,  transparent 10px, #c00 0) bottom left;
	background-size: 50% 50%;
	background-repeat: no-repeat;
}

div.round {
	background-image:
		radial-gradient(circle at 0 0, rgba(204,0,0,0) 14px, #c00 15px),
		radial-gradient(circle at 100% 0, rgba(204,0,0,0) 14px, #c00 15px),
		radial-gradient(circle at 100% 100%, rgba(204,0,0,0) 14px, #c00 15px),
		radial-gradient(circle at 0 100%, rgba(204,0,0,0) 14px, #c00 15px);
}

/* Ignore the CSS from this point, it's just to make the demo more presentable */
body {
    background: #444;
    font-family: sans-serif;
}

div.round {
  position:absolute;
    width: 100%;
  height:100%;
    margin:15px auto;
    padding:13px 15px;
    color: white;

}


              
            
!

JS

              
                
              
            
!
999px

Console