Thanks Jukka. I think I'll take your suggestion to put (city or zip) outside
the box.

But be aware you can style text within a text box -- font, size, weight and
color.

Best,

CC

On Sat, Aug 8, 2009 at 3:05 PM, Jukka K. Korpela <[email protected]> wrote:

> Ce Ce wrote:
>
> > Can default "value" text be two different styles within the same
> > textbox?
>
> No, because the text needs to be plain text - no way to insert markup
> there,
> thus no inner elements.
>
> > For example -- in one input text box I'd like to put:
> > Location (city or zip)
> >
> > Can "Location" be large and "(city or zip)" styled smaller?
>
> No. But why would you do that? It could mislead the user into thinking that
> the input can be "rich text".
>
> Moreover, this does not look like a useful default value but an
> explanation - something that should _precede_ the field, as a label, and
> then you can style its part, if you just use some inner markup, e.g.
>
> <label for="loc"><span class="foo">Location</span> (city and zip):</label>
> <input id="loc" ...>
>
> --
> Yucca, http://www.cs.tut.fi/~jkorpela/ <http://www.cs.tut.fi/%7Ejkorpela/>
>
> ______________________________________________________________________
> css-discuss [[email protected]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to