开发者

Custom field size in Plone 4 using Dexterity

A quickie: how does one specify a custom field size (width and height) in a schemata using Dexterity?

For example, a textarea (schema.Text) width is set to 100%. I'd like to specify a default width and height, to make it more useful.

How does one achieve this? I tried looking into plone.directives.form, but couldn't find anything.开发者_开发知识库


The 100% width is actually coming from public.css, and not anything in Dexterity or z3c.form. If you want to override it, you could do so with your stylesheet, or if it is specific to that particular field, you could specify the "style" attribute in your field schema to supply field-specific inline CSS.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜