cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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 id="login-holder">
			<h1>Login</h1>
		    <input type="text" placeholder="Username" name="user" />
		    <input type="password" placeholder="Password" name="pass" />
			<input type="submit" value="Login" /></div>
            
          
!
            
              html {
				height: 100%;
			}
			body {
				height: 100%;
				background-color: #6d695c;
				background-image: -moz-repeating-linear-gradient(-30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px), -moz-repeating-linear-gradient(30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px), -moz-linear-gradient(30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1)), -moz-linear-gradient(-30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1));
				background-image: -webkit-repeating-linear-gradient(-30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px), -webkit-repeating-linear-gradient(30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px), -webkit-linear-gradient(30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1)), -webkit-linear-gradient(-30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1));
				background-image: repeating-linear-gradient(-30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px), repeating-linear-gradient(30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px), linear-gradient(30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1)), linear-gradient(-30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1));
				background-size: 70px 120px;
			}
			/*
			 * Main Elements
			 */
			#login-holder {
				margin: 30px auto;
				width: 250px;
				padding: 15px;
				border: 1px solid #444;
				background: #fff;
			}
			.borderradius #login-holder {
				-moz-border-radius: 5px;
				-webkit-border-radius: 5px;
				-o-border-radius: 5px;
				border-radius: 5px;
			}
			.boxshadow #login-holder {
				-moz-box-shadow: 1px 1px 5px #000;
				-webkit-box-shadow: 5px 5px 5px #000;
				box-shadow: 1px 1px 5px #000;
			}
			#login-holder h1 {
				text-align: center;
				font: 22px /26px "Lucida Grande", Arial, Helvetica, sans-serif;
				margin: 0 0 15px;
			}
			#login-holder label, #login-holder input {
				margin: 5px 0;
				font: 12px /16px Arial, Helvetica, sans-serif;
				color: #444;
			}
			#login-holder input {
				padding: 3px;
				width: 100%;
				background: none;
				display: block;
			}
			#login-holder label {
				padding: 0 7px;
			}
			#login-holder input[type=submit] {
				background-color: #d3a33e;
				background-image: -moz-linear-gradient(bottom,#d3962c,#dbb157);
				background-image: -webkit-gradient(linear,left bottom,left top,from(#d3962c),to(#dbb157));
				border: 2px solid #444;
				width: 150px;
				margin: 5px auto;
			}
			#login-holder input[type=submit]:hover {
				background-color: #dbb157;
				background-image: -moz-linear-gradient(bottom,#dbb157,#d3962c);
				background-image: -webkit-gradient(linear,left bottom,left top,from(#dbb157),to(#d3962c));
			}
			#login-holder input[type=submit]:active {
				background-color: #dbb157;
				background-image: -moz-linear-gradient(bottom,#dbb157,#d3962c);
				background-image: -webkit-gradient(linear,left bottom,left top,from(#dbb157),to(#d3962c));
				-moz-box-shadow: 1px 1px 5px #fff inset;
				-webkit-box-shadow: 1px 1px 1px #fff inset;
				box-shadow: 1px 1px 5px #fff inset;
			}
			.borderradius #login-holder input[type=submit] {
				-moz-border-radius: 5px;
				-webkit-border-radius: 5px;
				-o-border-radius: 5px;
				border-radius: 5px;
			}
			/*
			 * Placeholder Text
			 */
			input:-moz-placeholder {
				font: 12px /16px Arial, Helvetica, sans-serif;
				color: #444;
			}
			::-webkit-input-placeholder {
				font: 12px /16px Arial, Helvetica, sans-serif;
				color: #444;
			}
			/*
			 * Dynamic Content
			 */
			.input-wrap {
				position: relative;
			}
			.input-wrap label {
				position: absolute;
				left: 0;
				top: 0;
				z-index: 1;
			}
			.input-wrap input {
				position: relative;
				z-index: 2;
			}
			#login-holder label.focus {
				color: #ccc;
			}
			#login-holder label.hide {
				display: none;
			}
            
          
!
            
              if (!Modernizr.input.placeholder){
    $(function(){
        $('#login-holder input')
            .wrap('<div class="input-wrap" />')
            .each(function(){
                $(this).before('<label for="'+$(this).attr('name')+'">'+$(this).attr('placeholder')+'</label>');
            })
            .focus(function(){
                $('label[for='+$(this).attr('name')+']').addClass('focus');
            })
            .blur(function(){
                $('label[for='+$(this).attr('name')+']').removeClass('focus');
            })
            .keyup(function(){
                if($(this).val() != ''){
                    $('label[for='+$(this).attr('name')+']').addClass('hide');
                }else {
                    $('label[for='+$(this).attr('name')+']').removeClass('hide');
                }
            });
    });
}
            
          
!
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