Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <meta name="viewport" content="width=device-width, initial-scale=1.0">

<div class="items">
  <div class="item">
    <img src="http://placehold.it/200x200" alt="">
    <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quod at incidunt nisi debitis a!</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis, accusamus.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x150" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem nostrum voluptate eos repudiandae harum mollitia? Minima, libero dolorem?</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x250" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x240" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Dignissimos dolorum omnis provident animi a nam ex similique! Eos, sunt id.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x320" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab necessitatibus voluptate ut odio quasi, aperiam quos.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x200" alt="">
     <h4>name family1</h4>
    <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Saepe repellendus nemo impedit pariatur.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x120" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Nesciunt sint a omnis aperiam distinctio.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x180" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloribus, totam!</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x100" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Atque hic blanditiis autem minima necessitatibus, quidem excepturi in quia ipsum iure?</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x200" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Excepturi, eligendi.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x270" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Temporibus quis quisquam ipsa perferendis nam hic cupiditate. Voluptate veniam quos repellat.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x100" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolorem, earum?</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x250" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum, ducimus quibusdam.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x120" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit cupiditate ipsam aut.</p>
  </div>
  <div class="item">
    <img src="http://placehold.it/200x200" alt="">
     <h4>name family1</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. A obcaecati sequi nihil fugit perspiciatis suscipit facere, iste libero eum? Explicabo dolore mollitia eum. Ipsum temporibus officia nostrum dolor delectus explicabo.</p>
  </div>
</div>
              
            
!

CSS

              
                *{
  box-sising: border-box;
}

.items{
  max-width: 768px;
  margin: auto;
  column-count: 3;
}

.item{
  display: inline-block;
  background: #fafafa;
  border: 1px solid #999;
  padding: 4px;
  margin-top: 10px;
}

.item img{
  display: block;
  width: 100%;
}

.item h4{
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}


              
            
!

JS

              
                
              
            
!
999px

Console