You are here: Re: newbie: adding * to the tail of a input field « HTML « IT news, forums, messages
Re: newbie: adding * to the tail of a input field

Posted by Jeff on 01/08/07 03:09

"Harlan Messinger" <hmessinger.removethis@comcast.net> wrote in message
news:50dfu3F1f9c45U2@mid.individual.net...
> Jeff wrote:
>> Hey
>>
>> I want to add this char "*" to the end of a input field. The reason I
>> want this * is to tell users that the input field is required to have a
>> value.
>>
>> I tryed using this traditional approach:
>> <td style="width:60%; background-color:#003399;">
>> <input type="text" name="username" id="username" />*
>> </td>
>> But the * get on a new line under the input field!
>
> CSS for the TD: white-space: nowrap;

Strange, but white-space: nowrap; doesn't help

<td style="width:60%; white-space:nowrap; background-color:#006699;">
<input type="text" name="username" id="username" />*
</td>

I tested this in both IE7 and Opera 9.10. And I get the same result in both
browsers:
Within the table cell the * is placed on a newline under the input field.
Looks like white-space:nowrap; didn't have any effect.

Any suggestions?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация