I was confused by this a couple of times as well - it *looks* like you can
specify the width and size of those form fields from inside the model, but
CSS is the best way to do it. Each form field will have it's own ID - in the
case of "{{form.username}}" you should expect to see the form id
"id_username" on which you can inflict styling

-joe

On 2/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Each one is given an ID based on it's name. Just use CSS on those IDs
> to set the width you want.
>
> On Feb 22, 4:14 am, "VirusRaja" <[EMAIL PROTECTED]> wrote:
> > Dear all,
> >
> > Am new to django, i have a problem i don't know how it will work in
> > Django,
> > i have created a user model, which has user data, in my template if i
> > use the model tags {{form.username}} my webpage alighments is not
> > coming up properly, I need to set the sizes for the controls. is there
> > any way can i set the size for <input > which are created by the
> > Django Tags.
> >
> > thanx
> >  Prasad
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to