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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <div class="cut-in"></div>

<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Laudantium consectetur quae quam mollitia, laboriosam quos repellat. Tempore, quod? Quam ex at repellendus maxime eveniet perspiciatis doloremque hic corporis molestias quos minima dolore quidem, amet autem similique eos ad ipsam architecto tempora non est voluptatum eligendi veniam. Magnam corporis ipsa odio veniam incidunt suscipit doloremque et inventore quam voluptatum sit quaerat autem, saepe odit nesciunt magni. Amet omnis quam vitae esse totam saepe veniam alias dignissimos? Dolore nam non ratione dignissimos voluptatem laudantium, magnam, sequi ut eum excepturi, cupiditate tempore repudiandae culpa dolorem autem blanditiis sunt a quisquam? Sint, enim reprehenderit sit rem voluptates, corrupti, aliquam quam provident doloremque distinctio adipisci error earum eveniet magnam placeat quibusdam. Ab, dolor maiores? Adipisci qui ab rerum eligendi dolorum doloribus, consequatur sit dolor, at, beatae molestias nemo quasi optio voluptatum voluptas maiores earum neque a amet molestiae exercitationem vel asperiores. Qui iusto fuga aut vero laborum, esse sapiente dolorum nesciunt quos aspernatur architecto quae culpa nulla porro molestias deserunt unde? Nam id repellat quidem inventore veritatis praesentium voluptatum ullam qui saepe ab odio similique voluptate recusandae nemo quas possimus unde, numquam accusamus! Rem, in! Quis commodi tenetur sit amet est voluptas enim repellat quas!</p>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");

body {
  font-family: Montserrat, sans-serif;
  margin: 3rem;
  background: #FFF8E1;
  max-width: 60ch;
}

.cut-in {
  --top: 60px;
  --width: 50px;
  --bottom: 150px;
  
  width:  var(--width);
  height: calc(var(--bottom));
  transform: translate(0, var(--top));
  float: left;
  background: red;
  
  shape-outside: polygon(0 var(--top), var(--width) var(--top), var(--width) var(--bottom), 0 var(--bottom));
  
  clip-path: polygon(0 0, var(--width) 0, var(--width) calc(var(--bottom) - var(--top)), 0 calc(var(--bottom) - var(--top)));

}
              
            
!

JS

              
                
              
            
!
999px

Console