If you are manually expressing the form, then you can add classes and ID's
to any or all elements in the form. Even if you are using something like
the {{ form.as_p }} method to display the form, you can still style it
using CSS styles at the tag level. Just include a custom CSS file with your
template.

-James
On Nov 13, 2014 12:13 PM, "Russo" <aruss...@musicparticles.com> wrote:

>  Hi Kakar,
>
> but i tried and there is not way to change the bottom style, see the html
> code
>
>         <!-- Upload form. Note enctype attribute! -->
>         <form action="{% url "list" %}" method="post"
> enctype="multipart/form-data">
>             {% csrf_token %}
>
>             <p>{{ form.non_field_errors }}</p>
>             <p>{{ form.docfile.label_tag }} {{ form.docfile.help_text
> }}</p>
>             <p>
>                 {{ form.docfile.errors }}
>                 {{ form.docfile }}
>             </p>
>             <p><input type="submit" value="Upload" /></p>
>         </form>
>
> as it is a form there is no way to change style ¿?
>
> Regards/AR
>
>
> El 13/11/2014 a las 03:37 p.m., Kakar Nyori escribió:
>
> Then you need to apply css to the form.
>
> On Fri, Nov 14, 2014 at 1:16 AM, Russo <aruss...@musicparticles.com>
> wrote:
>
>> Hi,
>>
>> i just implemented the uploadfile form on Django, and everything goes
>> greate, but i would like to do if it is possible to apply CSS styles to the
>> upload botton on the forms, Anybody knows this?
>>
>> Regards
>> Russo
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/54650A9B.8040004%40musicparticles.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2B8oko%2Bawro-H19b7XG-LXnNc4r%2BmFX0qTx_7kkvSmo%3Dvkg30A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2B8oko%2Bawro-H19b7XG-LXnNc4r%2BmFX0qTx_7kkvSmo%3Dvkg30A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5465119E.2030707%40musicparticles.com
> <https://groups.google.com/d/msgid/django-users/5465119E.2030707%40musicparticles.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciVJek%2B_qxrqM5uqMFc0JZq1FEPK4waKtq%3DLOfK90JPN7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to