31 points · by remybach · 14y ago · 16 comments
$('form').superLabels({ slide:false });
I generally use normal boring labels, then modernizer to detect if the browser supports placeholders, if so hide the labels and add placeholders to the attributes
This plugin doesn't replace (true) placeholder functionality, so I suppose it's the same as what you're doing except more semantic.
&::-webkit-input-placeholder {
-webkit-transition: text-indent 200ms ease-in-out;
visibility: visible !important;
}
&:focus::-webkit-input-placeholder {
text-indent: 115px; /* Change to width of input */
}
If only you could do the same for Firefox...