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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <figure class="snip1165">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample62.jpg" alt="sample62"/>
  <figcaption>
    <h3>Quiche<span> Hollandaise</span></h3>
    <p>
      Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.
    </p>
    <div class="icons">
      <a href="#"><i class="ion-social-reddit-outline"></i></a>
      <a href="#"> <i class="ion-social-twitter-outline"></i></a>
      <a href="#"> <i class="ion-social-vimeo-outline"></i></a>
    </div>
  </figcaption>
</figure>
<figure class="snip1165 red">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample63.jpg" alt="sample63"/>
  <figcaption>
    <h3>Caspian<span> Bellevedere</span></h3>
    <p>
      I don't need to compromise on my principles, because they don't have the slightest bearing on what happens to me anyway.
    </p>
    <div class="icons">
      <a href="#"><i class="ion-social-reddit-outline"></i></a>
      <a href="#"> <i class="ion-social-twitter-outline"></i></a>
      <a href="#"> <i class="ion-social-vimeo-outline"></i></a>
    </div>
  </figcaption>
</figure>
<figure class="snip1165 orange">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample64.jpg" alt="sample64"/>
  <figcaption>
    <h3>Parsley<span> Montana</span></h3>
    <p>
      That's the problem with nature, something's always stinging you or oozing mucous all over you. Hobbes, I think it is time you and me when and watched some TV.
    </p>
    <div class="icons">
      <a href="#"><i class="ion-social-reddit-outline"></i></a>
      <a href="#"> <i class="ion-social-twitter-outline"></i></a>
      <a href="#"> <i class="ion-social-vimeo-outline"></i></a>
    </div>
  </figcaption>
</figure>
            
          
!
            
              /* Included color classes.. 
	.red 
	.blue 
	.green
	.orange
	.navy 
*/
/* Icon set - http://ionicons.com/ */
@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
figure.snip1165 {
  font-family: 'Raleway', Arial, sans-serif;
  position: relative;
  float: left;
  overflow: hidden;
  margin: 10px 1%;
  min-width: 220px;
  max-width: 310px;
  width: 100%;
  background: #000000;
  color: #333;
  text-align: left;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
figure.snip1165 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}
figure.snip1165 img {
  max-width: 100%;
  vertical-align: top;
}
figure.snip1165 figcaption {
  position: relative;
  background-color: #ffffff;
  padding: 20px 25px 50px;
}
figure.snip1165 h3 {
  position: absolute;
  bottom: 100%;
  text-transform: uppercase;
  padding: 10px 25px;
  border-radius: 0 5px 0 0;
  margin: 0;
  left: 0;
  font-weight: 400;
  background-color: #000000;
  color: #ffffff;
}
figure.snip1165 h3 span {
  font-weight: 800;
}
figure.snip1165 p {
  font-size: 0.8em;
  font-weight: 500;
  text-align: left;
  margin: 0;
  line-height: 1.6em;
}
figure.snip1165 .icons {
  position: absolute;
  bottom: 0;
  right: 25px;
}
figure.snip1165 i {
  margin: 0 2px;
  display: inline-block;
  font-size: 20px;
  color: #ffffff;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #000000;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  border-radius: 5px 5px 0 0;
}
figure.snip1165 i:hover {
  background-color: #000000;
  color: white !important;
}
figure.snip1165 a {
  opacity: 0.8;
  display: inline-block;
}
figure.snip1165 a:hover {
  opacity: 1;
}
figure.snip1165.blue {
  background-color: #2472a4;
}
figure.snip1165.blue figcaption:after,
figure.snip1165.blue h3,
figure.snip1165.blue i {
  background-color: #2472a4;
}
figure.snip1165.red {
  background-color: #ab3326;
}
figure.snip1165.red figcaption:after,
figure.snip1165.red h3,
figure.snip1165.red i {
  background-color: #ab3326;
}
figure.snip1165.green {
  background-color: #229955;
}
figure.snip1165.green figcaption:after,
figure.snip1165.green h3,
figure.snip1165.green i {
  background-color: #229955;
}
figure.snip1165.orange {
  background-color: #d67118;
}
figure.snip1165.orange figcaption:after,
figure.snip1165.orange h3,
figure.snip1165.orange i {
  background-color: #d67118;
}
figure.snip1165.navy {
  background-color: #2b3c4e;
}
figure.snip1165.navy figcaption:after,
figure.snip1165.navy h3,
figure.snip1165.navy i {
  background-color: #2b3c4e;
}
figure.snip1165:hover img,
figure.snip1165.hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console