try this
def tab2div(form):
if not hasattr(form,'components'): return
for item in form.components:
try:
if item.tag in ['table','tr','td']: item.tag='div'
tab2div(item)
except: pass
tab2div(form)
On 29 Apr, 22:17, blackthorne <[email protected]> wrote:
> hi
>
> I wanted to be able to fully configure SQLFORM generated forms with
> CSS. Being table based seems to restrict my possibilities in CSS. Is
> there any tip, snippet on how may I easily give some personal style
> into my SQLFORM's ?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---