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'));
?>
精彩评论