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]
|