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.

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

            
              <h1>
  <pre>
shape-outside: <span>url(foo.svg)</span>;</pre>
</h1>
<main>
  <img src="https://raw.githubusercontent.com/Pierrinho/stock/master/cool-background.svg?sanitize=true" alt=""/>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Amet cursus sit amet dictum sit amet. Eget est lorem ipsum dolor. Viverra ipsum nunc aliquet bibendum enim. Ullamcorper malesuada proin libero nunc consequat interdum varius sit amet. Diam donec adipiscing tristique risus nec feugiat in. Et netus et malesuada fames. Quisque id diam vel quam elementum pulvinar etiam. Cursus turpis massa tincidunt dui ut ornare lectus. Quam elementum pulvinar etiam non quam lacus suspendisse faucibus interdum. Sed cras ornare arcu dui vivamus arcu. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
  
</main>
<div class="links">
  <a class="link-ciu" target="_blank" href="https://caniuse.com/#search=shape-outside">Can i use</a>
  -
  <a target="_blank" href="https://developer.mozilla.org/fr/docs/Web/CSS/shape-outside">MDN</a>
</div>

            
          
!

CSS

            
              * {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-image: linear-gradient(-20deg, #691057 0%, #34ccc6 100%);
}

main {
  position: relative;
  max-width: 480px;
  max-height: 480px;
  padding: 20px;
  overflow: hidden;
  background: #fff;
  
  img {
    position: relative;
    display: block;
    float: right;
    margin-top: -20px;
    margin-right: -110px;
    max-width: 130%;
    shape-outside: url(https://raw.githubusercontent.com/Pierrinho/stock/master/cool-background.svg?sanitize=true);
    shape-margin: 10px;
  }
  
  p {
    margin: 0 0 1rem;
  }
  
}

h1 {
  color: #fff;
  margin: 0;
  
  pre {
    
    span {
      background-color: rgba(#000,.15);
      padding: 0.3rem;
      border-radius: 6px;
    }
  }
}

.links {
  color: #fff;
  margin: 1rem auto;
  
  a {
    display: inline-block;
    color: #fff;
    font-size: 0.8rem;
  }
}

            
          
!

JS

            
              
            
          
!
999px

Console