*It works perfectly.Thank you Antony!*
On Thursday, August 28, 2014 10:50:20 PM UTC+4, Anthony wrote: > > You could do something like: > > grid = SQLFORM.grid(db.mytable) > table = grid.element('.web2py_htmltable') > table and table[0].add_class('myclass') > > Anthony > > On Thursday, August 28, 2014 2:32:40 PM UTC-4, Vladimir Makarov wrote: >> >> How to add class attr. for table inside web2py grid div? >> Is there a way to manage styles for table or I need only duplicate styles >> in css file (.web2py_grid>table {some styles})? >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.