I'd like to know if there's a way to resize my modelform fields on the template. They're being rendered too big for the text input.
I tried this :
name = forms.CharField( widget=forms.TextInput(attrs={'size':'40'}))
but it didn't work.I also changed the width in css but unsuccessfully.Do you have any solution to suggest?Thx!You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/1uLFu7dOb1sJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment