Simple jQuery overlabel alternative


/ Published in: jQuery
Save to your folder(s)

Focus and keypress events determine when to hide, show, or dim a label.

Use in tandem with the following HTML/CSS:


HTML
----

<li>
First Name

</li>


CSS
----


li {
position: relative;
}

label {
position: absolute;
top: 1px;
left: 1px;
cursor: text;
}

URL: http://mikemetcalf.com/share/overlabel

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.