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.

            
              <figure>
<form>
  <h1>Sign In</h1>
  <label>Username</label>
  <input value="traditional text-security disc" />
  <label>Password</label>
  <input type="password" value="1234567890" />
</form>
  <figcaption>
    <code>-webkit-text-security:disc;</code>Traditional approach for password fields. You only know how many characters you've typed. Perhaps this is a bit overkill on security though?</figcaption>
</figure>

<figure>
<form>
  <h1>Sign In</h1>
  <label>Username</label>
  <input value="text-shadow blur" />
  <label>Password</label>
  <input class="shadow-blur" value="qwerty12345" />
</form>
  <figcaption><code>text-shadow:0 0 7px #555,<br> 0 0 10px #000;</code> Works on just about all browsers besides IE. <br> Note that when selecting/highlighting the text in the input it becomes visible, a problem that cannot be remediated with ::selection selector. </figcaption> 
</figure>

<figure>
<form>
  <h1>Sign In</h1>
  <label>Username</label>
  <input value="filter-effects blur" />
  <label>Password</label>
  <div class="filter-blur"><input value="password123" /></div>
</form>
  <figcaption><code>-webkit-filter:blur(3px);</code><strong>Works on Chrome 18+, Safari 6+.</strong><br> Text selection is no longer a problem, but because the CSS3 Filter blurs the entire element (text and border), you'd want to wrap the input in a div with your input style(s).</figcaption> 
</figure>
            
          
!
            
              * { box-sizing:border-box; }

body { background:#555; font-family:"Helvetica", arial; text-align:center; }

figure { display:inline-block; width:280px; height:200px; margin:50px 10px; text-align:left; }

figcaption { transition:opacity 1s ease; opacity:0; text-align:center; font-size:11px; line-height:1.5; color:#aaa; text-shadow:-1px -1px 1px #3a3a3a; }
figure:hover figcaption { opacity:1; }

code { display:block; font-family:monospace; padding:8px 0; font-size:15px; }

form { padding:20px 20px 25px; background:#fff; border-bottom:1px solid #444; box-shadow:0 2px 10px #333; border-radius:2px;}

h1 { padding-bottom:10px; }

label { display:inline-block; font-size:13px; font-weight:bold; padding:10px 3px 3px; }

input, .filter-blur { width:100%; padding:5px 10px; border:3px solid #ddd; border-radius:4px; font-size:17px; }
input:focus, .filter-blur-focused { outline:0; border-color:rgb(94,158,214); }

.shadow-blur { color:transparent; text-shadow:0 0 7px #555, 0 0 10px #000; }
.filter-blur input { border:0; padding:0; margin:0; -webkit-filter:blur(3px); }

            
          
!
            
              $(".filter-blur input").focus(function() {
  $(this).parent().addClass("filter-blur-focused");
});
$(".filter-blur input").blur(function() {
  $(this).parent().removeClass("filter-blur-focused");
});
            
          
!
999px
Loading ..................

Console