Am 19.07.2013 18:11, schrieb Dennis Backhaus:
attrs=dict(style='width:7.2em;position:relative;right:-8.8em;top:-3.8em')

It looks nice and all that, but the label of the field is not moved and
I have no way of moving/removing it.

Yes, since is the style attribute is for the input field only, not for the label. You can't change the style of the label directly with the default ListLayout.

But you can always add CSS in the style sheet, which is a much better place than in the declaration of the widget. If the id of the input field is "phone" you can style it like so:

  form input#phone {width: 8em}
  form label[for=phone] {display: none}

For more flexibility, use your own widget template. I have added an example for a better layout class than ListLayout in my answer here: http://stackoverflow.com/questions/17726700/turbogears2-how-to-customize-layout-for-new-user-form

-- Christoph

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to