[whatwg] Placeholder option for text input boxes
Nils Dagsson Moskopp
nils-dagsson-moskopp at dieweltistgarnichtso.net
Sun Oct 5 13:24:35 PDT 2008
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.
More information about the whatwg
mailing list