Connexion
One Laptop per Child Logo
Google Search
Google

LabsSphère Catégories
Css (9)
Php (8)
Javascript (11)
Xoops (5)
Divers (1)
Design (10)

Expanding Text Areas Made Elegant


Auteur : contact.us@alistapart.com (Tim Murtaugh) | Alistapart
Date : 2011-11-01T10:00:32+01:00
Lectures : 0

An expanding text area is a mutli-line text input field that expands in height to fit its contents. Commonly found in both desktop and mobile applications, such as the SMS composition field on the iPhone, it's a good choice when you don't know how much text the user will write and you want to keep the layout compact; as such, it's especially useful on interfaces targeted at smartphones. Yet despite the ubiquity of this control, there's no way to create it using only HTML and CSS, and most JavaScript solutions have suffered from guesswork, inaccuracy, or a lack of elegance ... until now.

URL : http://labs.xoofoo.org/modules/planet/view.article.php/18436
Trackback : http://labs.xoofoo.org/modules/planet/trackback.php/18436

Les commentaires appartiennent à leurs auteurs. Nous ne sommes pas responsables de leur contenu.
Auteur Conversation