W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] Placeholder option for text input boxes

From: Nils Dagsson Moskopp <nils-dagsson-moskopp@dieweltistgarnichtso.net>
Date: Sun, 05 Oct 2008 22:13:31 +0200
Message-ID: <1223237611.11433.41.camel@dell.linuxdev.us.dell.com>
Am Sonntag, den 05.10.2008, 12:20 -0700 schrieb Garrett Smith:
> But what if the designer wants to use an image?
> 
> <input type="search" placeholder="ybang.gif">
> 
> Would display the text:
> 
> "bang.gif"
> 
> - not the binary resource of the image. In some cases, designers or
> marketing will want an image there.  Maybe some ui css would be a
> possibility:
> 
> placeholder-background: url(bang.gif) no-repeat center;

IMO it'd have to be more like

input:hint
{
   background: url(foo.bar);
}

but can we switch over that discussion to CSS WG now ?


Cheers,

Nils
Received on Sunday, 5 October 2008 13:13:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:44 UTC