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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="center">
  <h1 class="label"> Blog Cards </h1>
  <div class="card-wrapper">
    <div class="blog-card">
      <div class="blog-card__thumbnail">
        <img src="http://placeimg.com/180/100/nature">
      </div>

      <div class="blog-card__details">
        <div class="blog-card__title">
          Mopar launches modern V-8 crate engine kits for classic muscle cars
        </div>

        <div class="blog-card__description">
          Flat Chrysler Automobiles is making Mopar Crate Hemi Engine             kits available as a factory-backed option for Mopar vehicles             from 1975 and earlier.
        </div>

        <button class="blog-card__action"> 
          <span style="margin-right: 10px"> Read More </span>
          <i class="fa fa-angle-right"> </i>
        </button>
      </div>
    </div>
    
    <div class="blog-card">
      <div class="blog-card__thumbnail">
        <img src="http://placeimg.com/180/100/any">
      </div>

      <div class="blog-card__details">
        <div class="blog-card__title">
          Mopar launches modern V-8 crate engine kits for classic muscle cars
        </div>

        <div class="blog-card__description">
          Flat Chrysler Automobiles is making Mopar Crate Hemi Engine             kits available as a factory-backed option for Mopar vehicles             from 1975 and earlier.
        </div>

        <button class="blog-card__action"> 
          <span style="margin-right: 10px"> Read More </span>
          <i class="fa fa-angle-right"> </i>
        </button>
      </div>
    </div>
    
    <div class="blog-card">
      <div class="blog-card__thumbnail">
        <img src="http://placeimg.com/180/100/people">
      </div>

      <div class="blog-card__details">
        <div class="blog-card__title">
          Mopar launches modern V-8 crate engine kits for classic muscle cars
        </div>

        <div class="blog-card__description">
          Flat Chrysler Automobiles is making Mopar Crate Hemi Engine             kits available as a factory-backed option for Mopar vehicles             from 1975 and earlier.
        </div>

        <button class="blog-card__action"> 
          <span style="margin-right: 10px"> Read More </span>
          <i class="fa fa-angle-right"> </i>
        </button>
      </div>
    </div>
  </div>
</div>

<div class="center">
  <h1 class="label"> Product Cards </h1>
  <div class="card-wrapper">
    <div class="product-card">
      <div class="product-card__thumbnail">
        <img src="http://placeimg.com/220/150/people">
      </div>
      
      <div class="product-card__details">
        <div class="product-card__title">
          3 Cans Liquid Moly Undercoat
        </div>
        
        <div class="product-card__description">
          Lorem ipsum keme keme keme 48 years sa na ang na shonget wasok           chaka ganders bakit cheapangga ang at Gino at nang bonggakea
        </div>
        
        <button class="product-card__action">
          Buy Now
        </button>
      </div>
    </div>
    
    <div class="product-card">
      <div class="product-card__thumbnail">
        <img src="http://placeimg.com/220/150/nature">
      </div>
      
      <div class="product-card__details">
        <div class="product-card__title">
          3 Cans Liquid Moly Undercoat
        </div>
        
        <div class="product-card__description">
          Lorem ipsum keme keme keme 48 years sa na ang na shonget wasok           chaka ganders bakit cheapangga ang at Gino at nang bonggakea             shonget nang ano sa ano ng katagalugan jutay ng at bakit ang
        </div>
        
        <button class="product-card__action">
          Buy Now
        </button>
      </div>
    </div>
    
    <div class="product-card">
      <div class="product-card__thumbnail">
        <img src="http://placeimg.com/220/150/architecture">
      </div>
      
      <div class="product-card__details">
        <div class="product-card__title">
          3 Cans Liquid Moly Undercoat
        </div>
        
        <div class="product-card__description">
          Lorem ipsum keme keme keme 48 years sa na ang na shonget wasok           chaka ganders bakit cheapangga ang at Gino at nang bonggakea             shonget nang ano sa ano ng katagalugan jutay ng at bakit ang boyband urky jowabella jowabelles quality control klapeypey-klapeypey
        </div>
        
        <button class="product-card__action">
          Buy Now
        </button>
      </div>
    </div>
  </div>
</div>
            
          
!
            
              $color-blue: #727fff;
$color-black: #000;
$color-gray: #888888;
$color-white: #fff;
$mobile: 320px;
$desktop: 1024px;

.center {
  width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.label {
  font-family: 'Quantico';
  text-align: center;
}

.card-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  
  @media screen and (max-width: $mobile) {
    flex-direction: column;
  }
}

.blog-card {
  height: 350px;
  width: 180px;
  margin-left: 15px;
  margin-right: 15px;
    
  .blog-card__thumbnail {
    width: 180px;
    height: 100px;
    object-fit: cover;
  }
  
  .blog-card__details {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: $color-white;
    box-shadow: 0 1px 7px rgba(0,0,0,0.5);
  }
  
  .blog-card__title {
    font-family: 'Quantico';
    font-size: 8px;
    text-transform: uppercase;
    color: $color-black;
  }
  
  .blog-card__description {
    font-family: 'Open Sans';
    font-weight: 300;
    font-size: 8px;
    color: $color-gray;
  }
  
  .blog-card__action {
    background: transparent;
    border: none;
    font-family: 'Quantico';
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    color: $color-gray;
    cursor: pointer;
  }
}

.product-card {
  width: 220px;
  margin-left: 15px;
  margin-right: 15px;
  box-shadow: 0 1px 7px rgba(0,0,0,0.5);
  
  .product-card__thumbnail {
    width: 220px;
    height: 150px;
    object-fit: cover;
  }
  
  .product-card__details {
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: $color-white;
  }
  
  .product-card__title {
    font-family: 'Quantico';
    font-size: 12px;
    text-transform: uppercase;
    color: $color-black;
  }
  
  .product-card__description {
    font-family: 'Open Sans';
    font-weight: 300;
    font-size: 11px;
    color: $color-gray;
  }
  
  .product-card__action {
    width: 100%;
    padding: 5px;
    background: $color-blue;
    border: 1px solid $color-blue;
    border-radius: 2px;
    font-family: 'Quantico';
    font-weight: 700;
    text-transform: uppercase;
    color: $color-white;
    cursor: pointer;
  }
}
            
          
!
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.

Console