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

              
                <main>
  <div class="photo">
  <section>
    <h2>Photography</h2>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" height="250" width="250" viewBox="0 0 512 512" xml:space="preserve"><style>.s0{fill:#38454F;}.s1{fill:#283238;}.s2{fill:#FFF;}</style><path d="M494.3 163.3l-80.8-33.7c-9.9-4.1-14.7-11.4-18.7-20.9 -4.4-10.4-6.4-21.6-6.4-32.8 0-15.1-12.3-27.4-27.4-27.4H254.1c-13.6 0-24.6 11-24.6 24.6v3.9c0 11.4-2.3 22.8-7.9 32.6 -4.4 7.8-10.2 13-19.9 14.8l-132.1 23.8c-40.6 8.8-69.6 44.8-69.6 86.3v190.2c0 11.7 9.4 21.1 21.1 21.1h215.3c21.8 11.2 46.4 17.7 72.6 17.7s50.8-6.4 72.6-17.7h112.8C517.9 445.8 517.9 163.3 494.3 163.3" fill="#38454F"/><path d="M467.9 304.6c0 87.8-71.1 158.9-158.9 158.9s-158.9-71.1-158.9-158.9 71.1-158.9 158.9-158.9S467.9 216.8 467.9 304.6M129.2 231.4c7.5-15.1 7.5-32.9 0-48l-18.9-37.8 -27.8 0.2 -12.9 2.3c-40.6 8.9-69.6 44.9-69.6 86.4v190.2c0 11.7 9.4 21.1 21.1 21.1h102.5v-190.4C123.6 247.1 125.5 238.9 129.2 231.4M494.3 163.3l-80.8-33.7c-6.2-2.6-10.2-6.4-13.4-11.2l9.3-22.6c0.7-1.7 2.7-2.6 4.5-1.9l91.7 37.6c1.7 0.7 2.6 2.7 1.9 4.4l-10.8 26.3C495.7 162.8 495.2 163 494.3 163.3" fill="#283238"/><path d="M105.9 203c0 12.2-13.8 22.1-30.9 22.1s-30.9-9.9-30.9-22.1 13.9-22 30.9-22S105.9 190.8 105.9 203" fill="#38454F"/><path d="M462.8 189.8h-16.4c-7.7 0-13.9 6.2-13.9 13.9v1.1c7.2 9 13.4 18.7 18.6 29.1h11.7c7.6 0 13.9-6.2 13.9-13.9v-16.4C476.7 196 470.5 189.8 462.8 189.8" fill="#283238"/><path d="M309 419.3c-63.3 0-114.8-51.5-114.8-114.8s51.5-114.7 114.8-114.7 114.8 51.5 114.8 114.8S372.2 419.3 309 419.3" fill="#434C6D"/><path d="M309 426.3c-67.1 0-121.8-54.6-121.8-121.8 0-67.1 54.6-121.8 121.8-121.8 67.1 0 121.8 54.6 121.8 121.8C430.7 371.7 376.1 426.3 309 426.3zM309 196.8c-59.4 0-107.8 48.3-107.8 107.8 0 59.4 48.3 107.8 107.8 107.8 59.4 0 107.8-48.3 107.8-107.8C416.7 245.1 368.4 196.8 309 196.8z" fill="#7383BF"/><path d="M335.4 384c-2.3 0-4.5-0.9-6.2-2.6 -3.5-3.5-3.5-9 0-12.5l35.3-35.3c3.5-3.5 9-3.5 12.5 0s3.5 9 0 12.5l-35.3 35.3C340 383.1 337.7 384 335.4 384M300.1 375.2c-2.3 0-4.5-0.9-6.2-2.6 -3.5-3.5-3.5-9 0-12.5l61.8-61.8c3.5-3.5 9-3.5 12.5 0s3.5 9 0 12.5l-61.8 61.8C304.7 374.3 302.4 375.2 300.1 375.2" fill="#FFF"/><path d="M345.9 110.3h-73.8c-4 0-7.2-3.2-7.2-7.2v-12c0-4 3.2-7.2 7.2-7.2h73.8c4 0 7.2 3.2 7.2 7.2v12C353.1 107.1 349.9 110.3 345.9 110.3" fill="#283238"/><path d="M317.8 313.4c0 4.9-4 8.8-8.8 8.8s-8.8-4-8.8-8.8 4-8.8 8.8-8.8S317.8 308.5 317.8 313.4" fill="#FFF"/></svg>
  </section>
  </div>
  <div class="code">
  <section>
    <h2>Coding</h2>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" height="250" width="250" viewBox="0 0 512 512" xml:space="preserve"><style>.s0{fill:#E8EDEE;}.s1{fill:#EA6148;}</style><path d="M361.9 494.3H150.1c0-19.5 15.8-35.3 35.3-35.3h141.2C346.1 459 361.9 474.8 361.9 494.3" fill="#E8EDEE"/><polygon points="317.8 459 194.2 459 211.9 388.4 300.1 388.4 " fill="#B0B6BB"/><path d="M512 317.8H0V48.6c0-17.1 13.8-30.9 30.9-30.9h450.2c17.1 0 30.9 13.8 30.9 30.9V317.8z" fill="#38454F"/><path d="M481.1 388.4H30.9C13.8 388.4 0 374.6 0 357.5v-39.7h512v39.7C512 374.6 498.2 388.4 481.1 388.4" fill="#E8EDEE"/><path d="M432.6 282.5H300.1c-4.9 0-8.8-4-8.8-8.8 0-4.9 3.9-8.8 8.8-8.8h132.4c4.9 0 8.8 4 8.8 8.8C441.4 278.5 437.4 282.5 432.6 282.5M167.7 229.5H79.4c-4.9 0-8.8-4-8.8-8.8 0-4.9 3.9-8.8 8.8-8.8h88.3c4.9 0 8.8 4 8.8 8.8C176.6 225.6 172.6 229.5 167.7 229.5M388.4 229.5H256c-4.9 0-8.8-4-8.8-8.8 0-4.9 3.9-8.8 8.8-8.8h132.4c4.9 0 8.8 4 8.8 8.8C397.2 225.6 393.3 229.5 388.4 229.5M211.9 229.5c-1.1 0-2.3-0.3-3.4-0.7 -1.1-0.4-2-1.1-2.9-1.9 -1.6-1.7-2.6-3.9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 115.9 256 114.8c0-1.1 0.3-2.3 0.7-3.4s1.1-2 1.9-2.9c2-2 5.1-2.9 7.9-2.4 0.6 0.1 1.1 0.3 1.7 0.5 0.5 0.2 1.1 0.4 1.5 0.8 0.5 0.4 1 0.7 1.3 1.1 0.9 0.9 1.5 1.9 1.9 2.9s0.7 2.2 0.7 3.4c0 1.1-0.3 2.3-0.7 3.4s-1.1 2-1.9 2.9c-0.4 0.4-0.8 0.7-1.3 1.1 -0.4 0.4-1 0.6-1.5 0.8 -0.5 0.3-1.1 0.4-1.7 0.5C266 123.5 265.4 123.6 264.8 123.6M309 176.6c-2.4 0-4.6-1-6.3-2.6 -1.6-1.7-2.6-4-2.6-6.3 0-2.3 1-4.6 2.6-6.3 3.3-3.3 9.3-3.3 12.5 0 1.6 1.7 2.6 4 2.6 6.3 0 0.6-0.1 1.1-0.2 1.8 -0.1 0.5-0.3 1.1-0.5 1.6 -0.2 0.5-0.4 1.1-0.8 1.6 -0.4 0.4-0.7 0.9-1.1 1.3C313.6 175.6 311.3 176.6 309 176.6" fill="#7383BF"/><polygon points="79.4 176.6 203 176.6 203 53 79.4 53 " fill="#8073bf"/></svg>
  </section>
  </div>
</main>
              
            
!

CSS

              
                *{ 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { font-size: 16pt;}
body {
  font-size: 1rem;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 300;
}

h2 { font-weight: 300; font-size: 2rem; }

main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  align-items: center;
}
main > div {
  height: 100vh;
  flex-grow: 1;
  flex-basis: 50%;
  
  display: flex;
  align-items: center;
  text-align: center;
  
}

section {
  margin: 0 auto;
  width: 450px;
  height: 450px;
  padding: 60px;
  background-color: white;
  border-radius: 100%;
  mix-blend-mode: screen;
}

.photo {
  background-color: #48aeaf;
}

.code {
  background-color: #48af4b;
}

              
            
!

JS

              
                // <div>Icons made by <a href="http://www.flaticon.com/authors/madebyoliver" title="Madebyoliver">Madebyoliver</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>
              
            
!
999px

Console