This is probably wrong for your case but occasionally I have had success overriding (or is that cascading?) style sheets by adding "!important" to the pertinent item in my .css file.

On 27/02/2016 2:39 AM, clarksonchri...@gmail.com wrote:
A simple upload button is proving difficult to implement bootstrap and
css on.... My attempt is as follows:

|classDocumentForm(forms.Form):docfile
=forms.FileField(label='Choose')def__init__(self,*args,**kwargs): #
don't particularly know or care about this and the below
component....super(DocumentForm,self).__init__(*args,**kwargs) #but they
are necessary to not get an
errorButtonHolder(Div('docfile',style="background:
black;",css_class="col-md-12",css_id="burton",template='home.html')),
#the Div part is what I'm most interested in- in order to be able to
style the button.|

Furthermore, having set the "css_class" to "burton", I have tried
referencing it in a normal css file:

|.burton{....}|

but that too is obviously misguided??

Can someone tell me where I'm going wrong?

--
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/a3380d61-8348-4904-8f8b-83d5fdeab070%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/a3380d61-8348-4904-8f8b-83d5fdeab070%40googlegroups.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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56D0D40B.6020603%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to