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

              
                <aside itemscope itemtype="http://schema.org/Person">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/rita-hayworth.png" alt class="wrap" property="image">
 <h1 itemprop="name">Rita Hayworth</h1>
<h2>Actress, dancer, comedienne: <span itemprop=birthDate content="1918-10-17">1918</span> – <span itemprop=deathDate content="1987-05-14">1987</span></h2>
<p>Born <span itemprop="additionalName">Margarita Carmen Cansino</span>. One of the original transformative actresses of Hollywood: changed her hair color eight times for eight different films, and her name twice. Appeared in 61 features; one of only six women to dance with both Fred Astaire and Gene Kelly during their careers.
</aside>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Gilda+Display|Oxygen');
body {
  background: #000;
}

aside[itemscope] {
  background: #222;
  overflow: hidden;
  color: #fff;
  font-family: Gilda Display, serif;
  padding: .5rem;
  padding-right: 2rem;
  margin: 0 auto;
  max-width: 800px;
}

aside[itemscope] h1 {
  margin-bottom: .5rem;
  margin-top: 2rem;
  font-size: 3rem;
}

aside[itemscope] p {
  font-family: Oxygen, sans-serif;
  line-height: 1.5;
  font-size: 1.4rem;
}

aside[itemscope] .wrap {
  float: left;
  width: 50%;
  height: auto;
  -webkit-shape-outside: url('https://thenewcode.com/assets/images/rita-hayworth-mask.png');
  shape-outside: url('https://thenewcode.com/assets/images/rita-hayworth-mask.png');
  -webkit-shape-margin: 2em;
  shape-margin: 2em;
}
              
            
!

JS

              
                /* Uses the Adobe CSS Shapes JS polyfill: click on the gear icon for more information */ 
              
            
!
999px

Console