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.

            
              <div class='card'>
	<div class='thumbnail'>
		<img src='https://ksr-ugc.imgix.net/assets/011/400/691/6f16b49b73b5df4e2ab3dcb747313f0e_original.jpg?w=1536&h=864&fit=fill&bg=FFFFFF&v=1463682143&auto=format&q=92&s=2d34c2958c1fd305a9a79760841a5ded' />
		<div class='play'>
			<i class="fa fa-play" aria-hidden="true"></i>
		</div>
	</div>
	<div class='info'>
		<h1 class='title'>Oculus Rift: Step Into the Game</h1>
		<div class='desc'>
			<p>Step inside your favorite game.</p>
			<p>Oculus Rift is a new virtual reality (VR) headset designed specifically for video games that will change the way you think about gaming forever. With an incredibly wide field of view, high resolution display, and ultra-low latency head tracking, the Rift provides a truly immersive experience that allows you to step inside your favorite game and explore new worlds like never before.
</p>
		</div>
		<a href="#" class='btn'>Learn More</a>
	</div>
	<div class='funding'>
		<div class='funding-bar'>
			<div class='inner-bar funded' style='width: 100%'>
				<p>974% funded</p>
			</div>
		</div>
		<p class='raised'>$2,437,429 Plegded<br /><span>out of $250,000 goal</span></p>
	</div>	
</div>	
            
          
!
            
              $green: #60c5ba
$dark: #004e66
$yellow: #EFDC05

*
	box-sizing: border-box

body
	font-family: 'Montserrat', sans-serif
	display: flex
	justify-content: center
	flex-direction: column
	align-items: center
	min-height: 100vh
	background: linear-gradient(45deg, $green, lighten($dark, 15%))

.card
	width: 480px
	box-shadow: 0px 1px 10px rgba(black, 0.35)
	background: white
	margin: 10px
	.funding
		padding: 40px 20px
		background: $dark
		color: white
		p
			&.raised
				margin: 0
				font-weight: 700
				span
					font-weight: 400
					font-size: 12.5px
		.funding-bar
			width: 100%
			height: 40px
			background: lighten($dark, 5%)
			border-radius: 5px
			display: flex
			justify-content: flex-start
			align-items: center
			overflow: hidden
			margin-bottom: 20px
			.inner-bar
				background: $yellow
				height: 40px
				display: flex
				align-items: center
				padding: 0 20px
				p
					font-weight: 700
				&.funded
					background: $green
	.thumbnail
		width: 100%
		max-width: 100%
		box-shadow: 0px 1px 10px rgba($green, 0.75)
		position: relative
		img
			width: 100%
		.play
			width: 50px
			height: 50px
			position: absolute
			top: 50%
			left: 50%
			transform: translate(-50%, -50%)
			display: flex
			justify-content: center
			align-items: center
			padding: 10px
			border-radius: 50px
			border: 2px solid white
			color: white
			transition: 0.15s ease-in-out
			cursor: pointer
			&:hover
				color: lighten($green, 25%)
				border-color: lighten($green, 25%)
	.btn
		padding: 20px 40px
		width: 100%
		text-align: center
		display: inline-block
		background: $green
		color: white
		text-decoration: none
		border-radius: 5px
		box-shadow: 1px 1px 0px 1px darken($green, 15%)
		transition: 0.15s ease-in-out
		&:hover
			transform: translate(1px, 1px)
	.info
		padding: 40px 20px
		.title
			margin: 0
		.desc
			position: relative
			width: 100%
			max-height: 75px
			overflow: hidden
			color: #999
			&:after
				content: ''
				position: absolute
				top: 0
				left: 0
				width: 100%
				height: 100%
				background: linear-gradient(180deg, transparent, rgba(white, 0.35), white)
            
          
!
999px
Loading ..................

Console