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="container">
	<br>
	<div class="row">
		<div class="col-md-6 col-lg-4">
			<!-- begin c-card -->
			<div class="c-card">
				<div class="c-card__wrapper" style="background-image: url(https://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-427646.jpg)">
					<div class="c-card__header">

					<!-- begin c-date -->
						<div class="c-date">
							<span class="c-date__day">24</span>
							<span class="c-date__month">Января</span>
							<span class="c-date__year">2018</span>
						</div>
					<!-- end c-date -->

					<!-- begin c-info -->
						<ul class="c-info">
							<li><a href="#" class="far fa-bookmark"></a></li>
							<li><a href="#" class="far fa-heart"><span>24</span></a></li>
							<li><a href="#" class="far fa-comment"><span>4</span></a></li>
						</ul>
					<!-- end c-info -->

					</div>
					<div class="c-card__body">
						<div class="c-card__content">
							<div class="c-card__author">Александр Белов</div>
							<h3 class="c-card__title">
								<a href="#">Сериал «Очень странные дела» продлен на третий сезон</a>
							</h3>
							<div class="c-card__desc">
								В 2017 году «Очень странные дела» были удостоены премии Гильдии киноактеров за 
								лучший актерский состав драматического сериала. 
							</div>
							<a href="#" class="c-card__more">Подробнее</a>
						</div>
					</div>

				</div>
			</div>
			<!-- end c-card -->
		</div>
		<div class="col-md-6 col-lg-4">

			<!-- begin c-card -->
			<div class="c-card">
				<div class="c-card__wrapper" style="background-image: url(https://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-427646.jpg)">
					<div class="c-card__header">

					<!-- begin c-date -->
						<div class="c-date">
							<span class="c-date__day">24</span>
							<span class="c-date__month">Января</span>
							<span class="c-date__year">2018</span>
						</div>
					<!-- end c-date -->

					<!-- begin c-info -->
						<ul class="c-info">
							<li><a href="#" class="far fa-bookmark"></a></li>
							<li><a href="#" class="far fa-heart"><span>24</span></a></li>
							<li><a href="#" class="far fa-comment"><span>4</span></a></li>
						</ul>
					<!-- end c-info -->

					</div>
					<div class="c-card__body">
						<div class="c-card__content">
							<div class="c-card__author">Александр Белов</div>
							<h3 class="c-card__title">
								<a href="#">Сериал «Очень странные дела» продлен на третий сезон</a>
							</h3>
							<div class="c-card__desc">
								В 2017 году «Очень странные дела» были удостоены премии Гильдии киноактеров за 
								лучший актерский состав драматического сериала. 
							</div>
							<a href="#" class="c-card__more">Подробнее</a>
						</div>
					</div>

				</div>
			</div>
			<!-- end c-card -->

		</div>
		<div class="col-md-6 col-lg-4">
			<!-- begin c-card -->
			<div class="c-card">
				<div class="c-card__wrapper" style="background-image: url(https://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-427646.jpg)">
					<div class="c-card__header">

					<!-- begin c-date -->
						<div class="c-date">
							<span class="c-date__day">24</span>
							<span class="c-date__month">Января</span>
							<span class="c-date__year">2018</span>
						</div>
					<!-- end c-date -->

					<!-- begin c-info -->
						<ul class="c-info">
							<li><a href="#" class="far fa-bookmark"></a></li>
							<li><a href="#" class="far fa-heart"><span>24</span></a></li>
							<li><a href="#" class="far fa-comment"><span>4</span></a></li>
						</ul>
					<!-- end c-info -->

					</div>
					<div class="c-card__body">
						<div class="c-card__content">
							<div class="c-card__author">Александр Белов</div>
							<h3 class="c-card__title">
								<a href="#">Сериал «Очень странные дела» продлен на третий сезон</a>
							</h3>
							<div class="c-card__desc">
								В 2017 году «Очень странные дела» были удостоены премии Гильдии киноактеров за 
								лучший актерский состав драматического сериала. 
							</div>
							<a href="#" class="c-card__more">Подробнее</a>
						</div>
					</div>

				</div>
			</div>
			<!-- end c-card -->
		</div>
	</div>
</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=cyrillic');
html,
body{
	height: 100%;
	background: #FC466B;  /* fallback for old browsers */
	background: -webkit-linear-gradient(to left, #3F5EFB, #FC466B);  /* Chrome 10-25, Safari 5.1-6 */
	background: linear-gradient(to left, #3F5EFB, #FC466B); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
body{
	font-size: 16px;
	line-height: 1.5;
	font-family: 'Open Sans', sans-serif;
}

// styles card
.c-card{
	margin-bottom: 32px;
	&__wrapper{
		display: flex;
		flex-direction: column;
		position: relative;
		overflow: hidden;
		background-color: #fff;
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
		min-height: 480px;
		box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3), 0 16px 12px rgba(0, 0, 0, .2);
		&:hover{
			.c-info{
				li {
					span{
						opacity: 1;
						transform: translate(-50%, -10px);
					}
				}
			}
			.c-card__body{
				transform: translateY(0);
			}
		}
	}
	&__header{
		display: flex;
		padding: 1.5rem 1rem;
		justify-content: space-between;
		align-items: center;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%; 
	}
	&__body{
		margin-top: auto;
		color: #fff;
		transform: translateY(calc(96px + 3.2rem)); 
		transition: transform 0.3s;
	}
	&__content{
		padding: 1em;
		position: relative;
		z-index: 1;
	}
	&__author{
		font-size: 14px;
		margin-bottom: 8px;
	}
	&__title{
		font-weight: 300;
		font-size: 26px;
		line-height: 1.2;
		margin-bottom: 16px;
		a{
			color: #fff;
			&:hover{
				text-decoration: none;
			}
		}
	}
	&__desc{
		height: 96px;
		overflow: hidden;
	}
	&__more{
		display: inline-block;
		margin: 1rem auto 0.5rem; 
		text-align: center;
		color: #fff;
		line-height: 1;
		position: relative;
		font-weight: 300;
		&:hover{
			color: #fff;
			text-decoration: none;
			&::after{
				transform: translate(20px, -50%);
  			opacity: 1;
			}
		}
		&::after{
			content: '\2192';
			opacity: 0;
			position: absolute;
			right: 0;
			top: 50%;
			transform: translate(0, -50%);
			transition: all ease 0.3s;
		}
	}
}

.c-date{
	color: #fff;
	font-size: 14px;
	&__day{
		
	}
	&__month{
		
	}
	&__year{
		
	}
}

.c-info{
	list-style: none;
	margin: 0;
	li{
		position: relative;
		display: inline-block;
		vertical-align: bottom;
		margin: 0 4px;
		a{
			color: #ffffff;
			&:hover{
				text-decoration: none;
			}
		}
		span{
			font-size: 14px;
			position: absolute;
			left: 50%;
			top: -4px;
			opacity: 0;
			transform: translate(-50%, 0);
			transition: all ease 0.25s;
		}
	}
}
            
          
!
999px
Loading ..................

Console