On 4/30/07, Christian Joergensen <[EMAIL PROTECTED]> wrote:
> Hi
Hi,

>
> Is it possible to have css classes attached to newforms widgets? I would
> like to be able to distinguish between fx. checkboxes, radio buttons,
> submit buttons, text fields (which are all <input />'s).

well, you can pass args={'class' : 'whatever'} to the widget's __init__()
or you could subclass the widget and do that inside

but there is currently no class set globally for all widgets

>
> In the oldforms module when having a required charfield, there would be
> a class="vTextField required" to make CSS styling easier.
>
> Am I overlooking something, or is newforms missing this?
>
> --
> Christian Joergensen | Linux, programming or web consultancy
> http://www.razor.dk  |     Visit us at: http://www.gmta.info
>
>
>


-- 
Honza Král
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
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