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="module-card-wrap">
  <div class="module-card">
    <div class="module-card-title">Cheesecake</div>
    <div class="module-card-meta">
      <div class="module-card-category">
        <span class="fa fa-tag"></span>
        <span>Desserts</span>
      </div>
      <div class="module-card-author">
        <span class="fa fa-user"></span>
        <span>Jenn Davis</span>
      </div>      
    </div> <!-- /module-card-meta -->

    <div class="module-card-bottom">
      <img src="http://placehold.it/400x150" alt="cheesecake" class="module-card-img" />

      <div>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea ipsum sit perspiciatis iusto commodi nihil tenetur veritatis adipisci sed? Illo nobis similique in facilis libero ab officia ratione nesciunt fugiat.</p>
      </div>

      <button class="module-card-button">See More</button>
    </div>
  </div>

  <div class="module-card">
    <div class="module-card-title">Cheesecake</div>
    <div class="module-card-meta">
      <div class="module-card-category">
        <span class="fa fa-tag"></span>
        <span>Desserts</span>
      </div>
      <div class="module-card-author">
        <span class="fa fa-user"></span>
        <span>Jenn Davis</span>
      </div>      
    </div> <!-- /module-card-meta -->

    <div class="module-card-bottom">
      <img src="http://placehold.it/400x100" alt="cheesecake" class="module-card-img" />
      <button class="module-card-button">See More</button>
    </div>
  </div>

  <div class="module-card">
    <div class="module-card-title">Cheesecake</div>
    <div class="module-card-meta">
      <div class="module-card-category">
        <span class="fa fa-tag"></span>
        <span>Desserts</span>
      </div>
      <div class="module-card-author">
        <span class="fa fa-user"></span>
        <span>Jenn Davis</span>
      </div>      
    </div> <!-- /module-card-meta -->

    <div class="module-card-bottom">
      <img src="http://placehold.it/400x300" alt="cheesecake" class="module-card-img" />

      <div>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
      </div>
      <button class="module-card-button">See More</button>
    </div>
  </div>

  <div class="module-card">
    <div class="module-card-title">Cheesecake</div>
    <div class="module-card-meta">
      <div class="module-card-category">
        <span class="fa fa-tag"></span>
        <span>Desserts</span>
      </div>
      <div class="module-card-author">
        <span class="fa fa-user"></span>
        <span>Jenn Davis</span>
      </div>      
    </div> <!-- /module-card-meta -->

    <div class="module-card-bottom">
      <img src="http://placehold.it/400x120" alt="cheesecake" class="module-card-img" />

      <div>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea ipsum sit perspiciatis iusto commodi nihil tenetur veritatis adipisci sed? Illo nobis similique in facilis libero ab officia ratione nesciunt fugiat.</p>
      </div>
      <button class="module-card-button">See More</button>
    </div>
  </div>

  <div class="module-card">
    <div class="module-card-title">Cheesecake</div>
    <div class="module-card-meta">
      <div class="module-card-category">
        <span class="fa fa-tag"></span>
        <span>Desserts</span>
      </div>
      <div class="module-card-author">
        <span class="fa fa-user"></span>
        <span>Jenn Davis</span>
      </div>      
    </div> <!-- /module-card-meta -->

    <div class="module-card-bottom">
      <img src="http://placehold.it/400x200" alt="cheesecake" class="module-card-img" />

      <div>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea ipsum sit perspiciatis iusto commodi nihil tenetur veritatis adipisci sed? Illo nobis similique in facilis libero ab officia ratione nesciunt fugiat.</p>
      </div>

      <button class="module-card-button">See More</button>
    </div>
  </div>
</div> <!-- /module-card-wrap -->    

            
          
!
            
              * {
  box-sizing: border-box;
}

.module-card-wrap {
  max-width: 70%;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
}

.module-card {
  background: #fff;
  border: 1px solid #f1f1f1;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.05);
  min-width: 100%;
  padding: 10px;
  margin-bottom: 5%;
  display: flex;
  flex-direction: column;
}

.module-card-title {
  font-size: 120%; 
  font-weight: 700;
}

.module-card-meta {
  display: flex;
}

.module-card-category, .module-card-author {
  flex: 1;
}

.module-card-author {
  text-align: right;
}

.module-card-bottom {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* a flex: 1 also works here, but is buggy on IE11 */
}

.module-card-img {
  margin: 20px 0;
  align-self: center;
  width: 100%;
  height: auto;
}

.module-card-button {
  background: seagreen;
  color: white;
  border: none;
  margin-top: auto;
  padding: 10px;
}

@media screen and (min-width: 600px) {
  .module-card {
    width: 48%;
    margin: 0 auto 2%;
    min-width: 0;
  }
}

            
          
!
999px
Loading ..................

Console