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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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 lang="en">
  <meta charset="UTF-8" />
  <title>CSS Rounded Borders</title>
  <div class="wave">I'm wavy at the bottom</div>
  <div class="wave wave--top">I'm wavy at the top</div>
  <div class="content">
    With two special pseudo elements (before and after) and the power of repeating css3 radial gradients this ruffle like waves are done much easier than before without an image file.


                @import url(;

$background: #FFF;

body {
  background-color: $background;
  color: #ffF;
  font-family: Montserrat, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 1em;
  line-height: 2em;
  margin: 0;
  padding: 0;

.wave {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, sandybrown, chocolate);
  height: 50px;
  position: relative;
  margin-bottom: 20px;
  &::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background-repeat: repeat-x;
  &::before {
    height: 10px;
    background-size: 20px 20px;
    background-image: radial-gradient(circle at 10px -5px, transparent 12px, white 13px);

  &::after {
    height: 15px;
    background-size: 40px 20px;
    background-image: radial-gradient(circle at 10px 15px, white 12px, transparent 13px);
  &--top {
    background: linear-gradient(to top, sandybrown, chocolate);
    &::after {
      // to take place in top instead of bottom
      bottom: auto;
      top: 0;
    &::before {
      background-image: radial-gradient(circle at 10px 15px, transparent 12px, white 13px);

  &::after {
    background-image: radial-gradient(circle at 10px 0, white 12px, transparent 13px);

.content {
  color: #333;
  font-size: 0.8em;
  padding: 1em;


                // and hopefully there is no js offcourse :)