[web2py] Re: checkbox labels

2011-07-26 Thread peter
Thanks Anthony both useful answers. I had tried _cellspacing (by guessing) and it had not worked for me, but I think I must have misplaced it. It works now. Peter On Jul 26, 3:01 pm, Anthony wrote: > Do you want the label in the same table cell as the checkbox? If so, you > should wrap the INPUT

[web2py] Re: checkbox labels

2011-07-26 Thread Anthony
Do you want the label in the same table cell as the checkbox? If so, you should wrap the INPUT and label in a TD (as is, TR is assuming you want two separate TD's). So, you could do: TR(TD(INPUT(_type="checkbox",_name="checkbox1",value="on"), "box_label"))) To control cellspacing, add _cel