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 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

              
                <html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>CSS Rounded Borders</title>
</head>
<body>
  <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.
  </div>
  
</body>
</html>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Montserrat);

//variables
$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;
  
  &::before,
  &::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);
    
    &::before,
    &::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;
}
              
            
!

JS

              
                // and hopefully there is no js offcourse :)
              
            
!
999px

Console