CheckboxesWidget can arrange check boxes horizontally. you can specify the colum number by 'cols'
Try this: db.define_table('test', Field('children')) db.test.children.requires = IS_IN_SET(['boy1','girl1','boy2','girl2','boy3','girl3','boy4','girl4']) def horizontal_checkbox(f,v): return SQLFORM.widgets.checkboxes.widget(f,v, cols=2) db.test.children.widget = horizontal_checkbox chechboxes are shown in 4 rows and every row contains 2 columns. On 6月16日, 下午9时22分, Johann Spies <johann.sp...@gmail.com> wrote: > How do I get radio buttons (and check boxes) to show up horizontally > in stead of vertically? > > e.g. > > Yes {} No {} > > in stead of > > Yes {} > No {} > > Regards > Johann > -- > "Finally, brethren, whatsoever things are true, whatsoever things are > honest, whatsoever things are just, whatsoever things are pure, > whatsoever things are lovely, whatsoever things are of good report; if > there be any virtue, and if there be any praise, think on these > things." Philippians 4:8