开发者

Cakephp Multiple Checkboxes in a row

When the form helper crea开发者_StackOverflowtes checkboxes, they stack vertically. I want them in a row horizontally to save space. How do I do this?


Try doing each checkbox individually.

<?php 
echo $this->Form->checkbox('somegroup', array('value' => 'foo', 'style' => 'float: left; display: inline')); 

echo $this->Form->checkbox('somegroup', array('value' => 'bar', 'style' => 'float: left; display: inline')); 
?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜