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 <abasta...@gmail.com> wrote: > 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 _cellspacing='[number]' to your TABLE() helper > (in general, you can add any attribute to an HTML tag by preceding it with > an underscore). > > Anthony > > > > On Tuesday, July 26, 2011 7:21:57 AM UTC-4, peter wrote: > > I am trying to use checkboxes in a form. I want several, one above > > each other. Each must have a label just to their right. > > > If I use > > TR(INPUT(_type="checkbox",_name="checkbox1",value="on"), "box_label")) > > > Then there are a lot of spaces between the checkbox and 'box_label'. I > > have tried a lot of different things but cannot get rid of the spaces. > > 'Cellspacing' does not seem to be changeable in web2py. Presumably > > there is a way to contol cell spacing can anyone enlighten me. > > > I want to have the checkbox, one space and then the label. > > > Thanks > > Peter- Hide quoted text - > > - Show quoted text -