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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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="flexbox">
  <div class="item">
    <img src="http://placehold.it/240x150" alt="" />
    <p>
      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    </p>
  </div>
  <div class="item">
    <img src="http://placehold.it/240x150" alt="" />
    <p>
       Nulla pharetra porta sagittis. Mauris et suscipit diam. Sed sollicitudin, dui at vulputate varius, tellus nunc euismod eros, sed venenatis purus diam at eros.
    </p>
  </div>
  <div class="item">
    <img src="http://placehold.it/240x150" alt="" />
    <p>
      Phasellus ullamcorper, urna ut auctor elementum, enim tortor vestibulum ligula, eget commodo elit massa vel erat. Mauris a erat enim. Suspendisse mollis hendrerit dapibus. Ut lorem enim, ultricies commodo elit vitae, rhoncus sodales odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
    </p>
  </div>
  <div class="item">
    <img src="http://placehold.it/240x150" alt="" />
    <p>
      Sed a maximus dui, quis semper felis.
    </p>
  </div>
  <div class="item">
    <img src="http://placehold.it/240x150" alt="" />
    <p>
      Class aptent taciti sociosqu ad litora torquent per conubia nostra, Sed eu sem lacinia, commodo orci non, vulputate neque.
    </p>
  </div>
  <div class="item">
    <img src="http://placehold.it/240x150" alt="" />
    <p>
      Quisque tincidunt dapibus pellentesque. Quisque varius tortor lectus, vitae rutrum eros pellentesque sit amet. Integer aliquam ante ullamcorper risus consectetur placerat.
    </p>
  </div>
</div>
            
          
!
            
              .item {
  border-radius: 10px;
  background: #edf;
  padding: 15px;
  margin: 5px;
  text-align: center;
}
img {
  max-width: 100%;
  height: auto;
}
p {
  text-align: left;
}

@media ( min-width : 600px ){
	.flexbox {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    max-height: 800px;
	}
  .item {
    width: 28%;
  }
}
            
          
!
999px
Loading ..................

Console