django-simple-captcha icon indicating copy to clipboard operation
django-simple-captcha copied to clipboard

Custom css class

Open christianmls opened this issue 12 years ago • 1 comments

Hi,

Thanks for your package, Can I add to custom css class to field in the template??

christianmls avatar May 27 '14 21:05 christianmls

Hm, you can if you use a custom form renderer such as django-crispy-form, but not directly if you let Django render vanilla forms.

That said it's quite easy to target the individual fields with sibling selectors, i.e.::

.captcha > input + input

mbi avatar May 30 '14 08:05 mbi