Interesting. I am able to style it by ID or class without changing the widget. The border and button style doesn't work but that is a limitation of the way most browsers render file upload widgets. They are notoriously difficult to style but the background color should at least change. Make sure your style rule is at the bottom of base.css or on the page in question. You will need to do some heavy lifting if you need to style if completely. Something like this: http://plugins.jquery.com/project/si_files http://www.quirksmode.org/dom/inputfile.html
On Oct 12, 10:04 am, "Michael - afewtips.com" <afewt...@gmail.com> wrote: > No - the box comes up - the #no_table_uptest { > background-color:#CACACA; > border:3px solid;} > > looks like it is active, but nothing takes effect. > > The submit button, drop down lists, text fields all properly get > formatted, > but not the file upload. > > On Oct 12, 10:16 am, "mr.freeze" <nat...@freezable.com> wrote: > > > What happens when you switch the class? (thanks for correcting my > > widget syntax Iceberg) > > > form = SQLFORM.factory(Field("uptest","upload",widget=lambda > > field,value,**kwargs:SQLFORM.widgets.upload.widget > > (field,value,_class="dummy",**kwargs))) > > > On Oct 12, 8:56 am, "Michael - afewtips.com" <afewt...@gmail.com> > > wrote: > > > > No - I haven't been able to apply styles to the upload field or > > > button. > > > > It looks like the class .upload is overriding the the id. > > > > On Oct 12, 9:23 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > Do you know what i causing the problem? > > > > > On Oct 12, 7:19 am, "Michael - afewtips.com" <afewt...@gmail.com> > > > > wrote: > > > > > > Hi, > > > > > I am applying the styles to all elements in a form successfully. > > > > > No problems, except for the file upload field and button. > > > > > > The id is properly set and the class is properly set, but nothing is > > > > > applied. > > > > > The property get a line through it, and when I apply the style in > > > > > FireBug, it doesn't get > > > > > applied. > > > > > > I downloaded the latest version of Web2py this morning and still > > > > > doesn't get applied. > > > > > > Thanks > > > > > Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---