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

[whatwg] Placeholder option for text input boxes

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Sun, 5 Oct 2008 15:52:54 -0700
Message-ID: <c9e12660810051552l6609aa2fsd696538d52465d99@mail.gmail.com>
On Sun, Oct 5, 2008 at 1:33 PM, Garrett Smith <dhtmlkitchen at gmail.com> wrote:
> On Sun, Oct 5, 2008 at 1:07 PM, L. David Baron <dbaron at dbaron.org> wrote:
>> On Sunday 2008-10-05 12:20 -0700, Garrett Smith wrote:

>
> What other use case did you have?
>

Were you t hinking of allowing styling of the placeholder text to have
values that would apply only to the placeholder, such as:

{
  color: #999;
  font-family: Tahoma;
}

?

>> I think something more like the following would work better:
>>  input[:value=""] { background: url(bang.gif) no-repeat center; }
>> perhaps with a default of:
>>  input[:value=""] { contents: attr(placeholder); }
>


> Garrett
>
>> -David
>>
>> --
>> L. David Baron                                 http://dbaron.org/
>> Mozilla Corporation                       http://www.mozilla.com/
>>
>
Received on Sunday, 5 October 2008 15:52:54 UTC

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