Ah. That is because file uploads cannot be styled by css, one of the more
annoying browser quirks.

http://www.quirksmode.org/dom/inputfile.html

http://shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom

-Thadeus




On Mon, Oct 12, 2009 at 10:04 AM, Michael - afewtips.com <[email protected]
> 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" <[email protected]> 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" <[email protected]>
> > 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 <[email protected]> wrote:
> >
> > > > Do you know what i causing the problem?
> >
> > > > On Oct 12, 7:19 am, "Michael - afewtips.com" <[email protected]>
> > > > 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to