Hello Russo,
You need to select the input button in the css. Something like this:
input[type=submit] {
background-color: transparent;
border:none;
cursor:pointer;
background-color:blue;
color:white;
}
Note that this will select every "submit" type button in your html. So if
you don't want all of
On Monday, November 17, 2014 5:00:54 AM UTC-8, Russo wrote:
>
> Hi James,
>
> sorry I'm new on Django, can you give me some code example? I mean, hot to
> define the CLASS or ID into the html with elements like this {{
> form.docfile }} ?
>
> Regards
> Russo
>
>
> El jueves, 13 de noviembre de 20
Hi Russo,
There should be an auto-generated id, in this case probably #id_docfile for
that field. You could check the generated html source to be sure. (or
"Inspect Element" in a browser.)
Collin
On Monday, November 17, 2014 8:00:54 AM UTC-5, Russo wrote:
>
> Hi James,
>
> sorry I'm new on Dj
Hi James,
sorry I'm new on Django, can you give me some code example? I mean, hot to
define the CLASS or ID into the html with elements like this {{
form.docfile }} ?
Regards
Russo
El jueves, 13 de noviembre de 2014 15:48:16 UTC-4:30, James Schneider
escribió:
>
> If you are manually express
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
temp
Hi Kakar,
but i tried and there is not way to change the bottom style, see the
html code
enctype="multipart/form-data">
{% csrf_token %}
{{ form.non_field_errors }}
{{ form.docfile.label_tag }} {{ form.docfile.help_text
}}
Then you need to apply css to the form.
On Fri, Nov 14, 2014 at 1:16 AM, Russo 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?
>
7 matches
Mail list logo