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:24:35 +0200
Message-ID: <1223238275.11433.44.camel@dell.linuxdev.us.dell.com>
Am Sonntag, den 05.10.2008, 22:13 +0200 schrieb Nils Dagsson Moskopp:
> 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
> 
Disregard that, David Baron's suggestion of a value pseudoattribute
seems even cooler.
Received on Sunday, 5 October 2008 13:24:35 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC