solved! TD(blah, _style='text-align:right;')
<applies palm to forehead> On Feb 7, 2:06 pm, Cliff <cjk...@gmail.com> wrote: > How can I get the buttons to stick to the right side of my index > table? > > My code looks something like this, after a couple of hours of reverse > engineering. > > query = db.tbl.blah > rows = db(query).select(db.tbl.id, db.tbl.f1, db.tbl.f2) > thead = THEAD(TR(TH('Col1'), TH('Col2'), TH())) > tbody = [] > for row in rows: > link = A('some action', URL('a_function, args=row.id), > _class='button') > tbody.append( > TR(row.f1, row.f2, TD(link, _class='row_buttons')) > ) > table = TABLE(thead, tbody) > div = DIV(table, _class='web2py_table') > return div > > In the resulting table, the TD with the buttons slides to the right, > just after the last data column. > > What am I missing?