cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <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>
            
          
!
            
              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;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console