CSS Library
CSS Layouts
Web Graphics
Online Tools:
Pop up form labels
Author: Dynamic Drive
When it comes to filling out form fields, any contextual help is always appreciated. This CSS code takes the label element of a form field and transforms it into a pop up label that's sure to get noticed, not to mention provide guidance. It uses CSS child and adjacent selectors to automatically select the label element that immediately follows the corresponding form element, and with CSS3 transform and positioning, pop it up into view.
Demo (focus your mouse on any of the form fields):
The CSS:
Code Info
Rate this code:
Date Posted: 02/04/2015
Revision History: None
Usage Terms: Click here