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.

            
              <!-- <p>Hint: Design a credit card checkout form or page. Don't forget the important elements such as the numbers, dates, security numbers, etc. (It's up to you!) Don't forget to share on Dribbble and/or Twitter when you're done.</p> -->

<div class="container">
	
	<div class="breadcrumbs">
		<div class="breadcrumb-item">
			<span class="number">1</span>
			<span class="label">Name & Address</span>
		</div>
		<div class="breadcrumb-item">
			<span class="number">2</span>
			<span class="label">Shipping</span>
		</div>
		<div class="breadcrumb-item current">
			<span class="number">3</span>
			<span class="label">Payment</span>
		</div>
		<div class="breadcrumb-item">
			<span class="number">4</span>
			<span class="label">Review Order</span>
		</div>
	</div>
	
	<div class="product">
		<img src="https://image.rakuten.co.jp/footmonkey/cabinet/newbalance/nb-wl555-sj-1.jpg">
		<h3>555 New Balance</h3>
		<p>$69.99</p>
		
		<table class="information">
			<tr>
				<td class="label">Style #:</td>
				<td>WL696CCA</td>
			</tr>
			<tr>
				<td class="label break">Color:</td>
				<td>Grey & mint</td>
			</tr>
			<tr>
				<td class="label">Subtotal:</td>
				<td>$69.99</td>
			</tr>
			<tr>
				<td class="label">Tax:</td>
				<td>$5.60</td>
			</tr>
			<tr>
				<td class="label break">Shipping:</td>
				<td>$5.00</td>
			</tr>
			<tr>
				<td class="label">Total</td>
				<td class="label">$80.59</td>
			</tr>
		</table>
	</div>
	
	<form>
		<div class="input-group">
			<label for="cc-number">Credit Card Number</label>
			<input type="text" name="cc-number">
		</div>

		<div class="cc-info">
			<div class="input-group month">
				<label>Month</label>
				<input type="number" name="exp-month" min="1" max="12">
			</div>

			<label class="slash">/</label>

			<div class="input-group year">
				<label>Year</label>
				<input type="number" name="exp-year" min="2016" max="2025">
			</div>

			<div class="input-group ccv">
				<label for="ccv">Security Code</label>
				<input type="number" name="ccv">
			</div>
		</div>
		
		<button>Next</button>
	</form>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700|Roboto:400,700);

body {
	font-family: 'Roboto', san-serif;
	background-color: #D7FEDB;
	height: 100%;
	width: 100%;
	min-width: 1000px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	position: absolute;
}

.container {
	width: 1000px;
	background-color: #FFF;
	box-shadow: 0 0 20px 0 #457F4B;
}

.breadcrumbs {
	background-color: #61B269;
	color: #FFF;
	display: flex;
	font-size: 14px;
	position: relative;
}

.breadcrumb-item {
	padding-left: 30px;
}

.breadcrumb-item:first-child {
	padding-left: 10px;
}

.breadcrumb-item .number {
	display: block;
	background-color: #457F4B;
	width: 8px;
	height: 16px;
	border-radius: 15px;
	padding: 6px 10px;
	float: left;
	margin: 13px 0 0 10px;
}

.breadcrumb-item .label {
	display: block;
	padding: 20px 0 20px 10px;
	float: left;
}

.breadcrumb-item::after {
	content: '';
	display: block;
	width: 35px;
	height: 35px;
	transform: rotate(130deg) skew(-10deg);
	float: right;
	position: relative;
	top: 10px;
	left: 19px;
	border-top: 1px solid #457F4B;
	border-left: 1px solid #457F4B;
	background-color: #61B269;
}

.breadcrumb-item.current,
.breadcrumb-item.current::after{
	background-color: #457F4B;
}

.breadcrumb-item.current .number {
	background-color: #61B269;
}

.product {
	margin-left: 30px;
	padding: 20px;
	width: 400px;
	float: left;
}

.product img {
	width: 200px;
	float: left;
	margin-right: 20px;
}

.product h3 {
	font-family: 'Roboto Condensed', san-serif;
	margin: 15px 0 0;
	text-decoration: underline;
}

.product p {
	margin: 0;
}

.product .details {
	margin-top: 20px;
}

.product .information {
	line-height: 1em;
	position: relative;
	right: 3px;
	margin-top: 20px;
}

.product .information td {
	vertical-align: top;
}

.product .label {
	font-weight: bold;
}

.product .break {
	padding-bottom: 20px;
}

form {
	float: right;
	background-color: #EEE;
	width: 360px;
	padding: 60px 80px 46px;
}

.cc-info {
	display: flex;
}

.cc-info input, .cc-info label {
	padding-left: 2px;
}

.input-group {
	height: 50px;
	margin: 0 0 20px;
}

.month{
	width: 65px;
	margin-right: 10px;	
}

.year {
	width: 65px;
	margin-right: 90px;
}

.slash {
	width: 15px;
}

.ccv {
	width: 113px;
}

label, input {
	display: block;
	width: 100%;
	height: 30px;
	font-size: 16px;
}

label {
	z-index: 1;
	transition: opacity 0.2s ease-in-out;
	color: #666;
}

input {
	border-top: 0;
	border-left: 0;
	border-right: 0;
	border-bottom: 2px solid #61B269;
	position: relative;
	top: -37px;
	background-color: transparent;
	transition: border-bottom 0.2s ease-in-out;
}

input:focus {
	outline: none;
}

button {
	display: block;
	background-color: #457F4B;
	border: 0;
	color: #FFFFFF;
	font-size: 18px;
	padding: 10px 20px;
	transition: background-color 0.2s ease-in-out;
	outline: none;
	float: right;
}

button:hover {
	cursor: pointer;
	background-color: #61B269;
}


.fadeOut {
	opacity: 0;
}

.fadeIn {
	opacity: 1;
}
            
          
!
            
              var inputs = document.getElementsByTagName('input');

for (var i=0; i<inputs.length; i++) {
	inputs[i].addEventListener('focus', function() {
		this.previousSibling.previousSibling.classList.remove('fadeIn');
		this.previousSibling.previousSibling.classList.add('fadeOut');
	});
	
	inputs[i].addEventListener('blur', function() {
		if (!this.value.length) {
			this.previousSibling.previousSibling.classList.remove('fadeOut');
			this.previousSibling.previousSibling.classList.add('fadeIn');
		}
	});
}
            
          
!
999px
Loading ..................

Console