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

              
                <div class="post">
  <h2>Blog Post About Coffee</h2>
  <h3>All Images from Unsplash</h3>
  <a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark"  data-pin-color="red" data-pin-height="28"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_28.png" /></a>
<!-- Please call pinit.js only once per page -->
  <div class="post-body">
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/652/coffee1.jpg" alt="coffee beans" data-pin-description="#Coffee - We Should Get Some" data-pin-media="https://s3-us-west-2.amazonaws.com/s.cdpn.io/652/coffee-composite.png">
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus nisi tenetur excepturi molestias atque itaque perspiciatis voluptates quaerat at minima, tempore optio odio vero laborum neque blanditiis id magnam voluptatibus.</p>
    <p>Aperiam ipsam facilis molestias laborum odio, mollitia iure iste, nihil necessitatibus reprehenderit debitis eaque eum, minus rerum cupiditate, atque vero consectetur dicta. Illum praesentium temporibus ut animi voluptates expedita dolorem!</p>
    <p>Numquam pariatur voluptate reprehenderit deserunt nihil temporibus, libero quam. Delectus ratione quos voluptates similique tempore! Provident, ad consequatur esse aliquam natus soluta reprehenderit, quia iusto in optio quas incidunt iure.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/652/coffee2.jpg" alt="mittened hands holding a steaming cup of coffee">
    <p>Aliquid numquam, animi eum quo! Velit fuga voluptas exercitationem fugit qui aut, quo placeat commodi laudantium. Tenetur, libero. Impedit facilis pariatur error non nam omnis perferendis nostrum quo magnam asperiores.</p>
    <p>Ipsa odio tenetur asperiores accusantium fuga nesciunt dolorum illo maiores est excepturi laborum ullam labore molestias quasi cumque iste quae, veniam, consequuntur atque! Quisquam beatae consequatur, quas error, cupiditate fugit.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/652/coffee3.jpg" alt="steaming coffee mug on a bedside table">
    <p>Aliquid numquam, animi eum quo! Velit fuga voluptas exercitationem fugit qui aut, quo placeat commodi laudantium. Tenetur, libero. Impedit facilis pariatur error non nam omnis perferendis nostrum quo magnam asperiores.</p>
    <p>Aperiam ipsam facilis molestias laborum odio, mollitia iure iste, nihil necessitatibus reprehenderit debitis eaque eum, minus rerum cupiditate, atque vero consectetur dicta. Illum praesentium temporibus ut animi voluptates expedita dolorem!</p>
    <p>Numquam pariatur voluptate reprehenderit deserunt nihil temporibus, libero quam. Delectus ratione quos voluptates similique tempore! Provident, ad consequatur esse aliquam natus soluta reprehenderit, quia iusto in optio quas incidunt iure.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/652/coffee4.jpg" alt="8 coffee mugs on a wooden table">
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus nisi tenetur excepturi molestias atque itaque perspiciatis voluptates quaerat at minima, tempore optio odio vero laborum neque blanditiis id magnam voluptatibus.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/652/coffee5.jpg" alt="cup of coffee with a leaf design in the foam">
    <p>Ipsa odio tenetur asperiores accusantium fuga nesciunt dolorum illo maiores est excepturi laborum ullam labore molestias quasi cumque iste quae, veniam, consequuntur atque! Quisquam beatae consequatur, quas error, cupiditate fugit.</p>
  </div>
</div>
<script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script>
              
            
!

CSS

              
                body { 
  font-family: sans-serif;
  line-height: 1.2;
}

.post {
  max-width: 600px;
  margin: 0 auto;
}

@media all and (max-width: 500px ) {
  .post {
    width: 90%;
    font-size: 1.1em;
    line-height: 1.3;
  }
}

.post-body img {
  max-width: 100%;
  height: auto;
}
              
            
!

JS

              
                
              
            
!
999px

Console