[html-formfu] Issue with a text label

George Hrysanthopoulos xaos at darksmile.net
Thu Jun 2 20:42:23 GMT 2011


Kamen,

You are the man!

Thank you!

-George

On 6/2/11 5:15 AM, Kamen Naydenov wrote:
> On Thu, Jun 2, 2011 at 11:27, George Hrysanthopoulos<xaos at darksmile.net>  wrote:
>> Ok, this should be simple but I am drawing a blank.
>>
>> How do I create a text field (or a password field),
>> in YML, and have the label start on a new line (not the same line
>> as the text field.
>>
>> Normally (in a form) I just do:
>>
>> Userid:<br />  <input type="text" size="30" /><br />
>>
>> And it works.
>>
>> Thank you in advance.
>>
>> -George
> Visual appearing of form elements is controlled via CSS styles (avoid
> using<br />)
> Here is example of YML for login form:
> <yml>
> ---
> auto_id: '%n'
> auto_constraint_class: '%t'
> # indicator is the field that is used to test for form submission
> indicator: submit
> auto_fieldset:
>    legend: Login form
> # Start listing the form elements
> elements:
>    - type: Text
>      name: username
>      label: Userid
>    - type: Password
>      name: password
>      label: Pass
>    - type: Submit
>      name: submit
> </yml>
>
> Than you need something like following CSS snippet:
> <css>
> label { display: block; }
> </css>
>
> And this will put labels on new line.
>
> best regards
> Kamen
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>




More information about the HTML-FormFu mailing list