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

              
                <div class="row">
    <div class="column">
        <div class="card">
		    <img src="https://myrusakov.ru/images/articles/demo/css3-imagehover/cat.jpg" alt="cat">
		<div class="card-content">
            <a href="#">
            <i class="fa fa-comments-o"></i>
            <span>10</span>
            </a>&nbsp;&nbsp;
            <i class="fa fa-heart-o"></i>
            <span>233</span>
       	<h2>Сколько у кошек жизней?</h2>
		<p>Мифы связаны с ловкостью кошек, с помощью которой
		им удается избежать опасных ситуаций.</p>
		<a class="button" href="#">Читать дальше</a>
        </div>
		</div>
    </div>
	
    <div class="column">
        <div class="card">
		    <img src="https://myrusakov.ru/images/articles/demo/css3-imagehover/dog.jpg" alt="dog">
		<div class="card-content">
            <a href="#">
            <i class="fa fa-comments-o"></i>
            <span>17</span>
            </a>&nbsp;&nbsp;
            <i class="fa fa-heart-o"></i>
            <span>124</span>
       	<h2>Как снять испуг у собаки?</h2>
		<p>Сегодня существуют действенный лекарственный
		препарат, который следует давать, только после..</p>
		<a class="button" href="#">Читать дальше</a>
        </div>
		</div>
    </div>
  
    <div class="column">
        <div class="card">
		    <img src="https://myrusakov.ru/images/articles/demo/css3-imagehover/zebra.jpg" alt="zebra">
		<div class="card-content">
            <a href="#">
            <i class="fa fa-comments-o"></i>
            <span>15</span>
            </a>&nbsp;&nbsp;
            <i class="fa fa-heart-o"></i>
            <span>155</span>
       	<h2>Почему зебры полосатые?</h2>
		<p>На этот счет мнения ученых разделились, в одном швейцарском
		научном институте поставили..</p>
		<a class="button" href="#">Читать дальше</a>
        </div>
		</div>
    </div>
</div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #444444;
  font-family: 'Roboto Slab', sans-serif;
  line-height: 1.6;
  font-size: 90%;
}

.row {
  display: flex; /* включение технологии flexbox */
  flex-direction: row; /* колонки в ряду */
  justify-content: center; /* колонки в центре контейнера */
  flex-wrap: nowrap; /* держать колонки в ряду */
  margin: 20px;
}

.column {
  display: flex;  /* одинаковая высота колонок */	
  width: 33.33%; /* ширина одной колонки */
  padding: 5px;
}

.card {
  border: 1px solid #efefef;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  transition: all .3s ease;
  padding-bottom: 20px;
}

.card:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

img {
  width: 100%;
}

.card-content {
  padding: 0 20px;
}

a {
  color: #444444;
  text-decoration: none;
  transition: all .3s ease; 
}

.card-content .fa, span {
    font-size: 80%;
}

.card h2 {
  padding-top: 10px;
  color: #f76270;
  font-size: 130%;
  line-height: 1.2;
}

.card p {
  margin: 20px 0 30px;
  color: #666666;
    
}

.button {
  display: block;
  background: #a7c1cf;
  padding: 10px 15px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
 }
 
 .button:hover, .button:focus {
    background: #f76270;
}

@media screen and (max-width: 640px) {
  .row {
	flex-direction: column; /* в ряду останется одна колонка */ 
    flex-wrap: wrap; /* разрешен перенос колонок */
}
  .column {
    width: 100%; /* новая ширина колонки */
    margin-bottom: 20px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console