Thank you all for the replies!<br><br>I wouldn&#39;t like to use CSS since I would like a &quot;self-contained&quot; form - all the data necessary to built the form would be in the schema. I think that the size of the text inputs, though being presentational in nature, in this case are **very** specific to the form and vary depending on the semantics of the fields, so, I don&#39;t think moving this data to a CSS would be the best option.<br>
<br>Could someone show me an example of defining a widget to set the size of the rendered input?<br><br>Marcelo.<br><br><div class="gmail_quote">On Mon, Apr 7, 2008 at 8:10 AM, Jim Fulton &lt;<a href="mailto:jim@zope.com">jim@zope.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><br>
On Apr 6, 2008, at 9:41 PM, Marcelo de Moraes Serpa wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<br>
This might sound lik a stupid question, but I couldn&#39;t find any simple solution or answer for this anywhere else, so hopefully someone in this list knows the answer.<br>
<br>
I&#39;m using zope.formlib to generate a simple contact form. It is simple and effective. But the framework complicates for simple things such as setting the size of a textfield. I don&#39;t want all the textfields to be of the same size - I want that, depending on the field, the size of the html input will vary. And that&#39;s exactly what I couldn&#39;t do as of yet. Does anyone know how could I set the size of a textfield?<br>

<br>
Take this as example:<br>
<br>
Telefone = schema.TextLine(title=_(u&quot;Telefone para Contato&quot;),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;required=True)<br>
<br>
Is there an attribute like size or something?<br>
</blockquote>
<br>
<br></div></div>
Someone (you?) asked this in IRC.<br>
<br>
Schema&#39;s (and schema fields) are for specification, not presentation. (Yes, the title and description are used for presentation by default.)<br>
<br>
If you want to provide finer control over presentation, provide custom widget in the form field definition. (It might be nice if zope.formlib.Field provided the ability to provide widget data without having to specify the widget.)<br>

<br>
Jim<br><font color="#888888">
<br>
--<br>
Jim Fulton<br>
Zope Corporation<br>
<br>
<br>
</font></blockquote></div><br>