Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140734

How to align text boxes in yii2 form field?

$
0
0

I have a checkbox in my form field , its a multiple checkbox with single array of values its appears one below one and i need it to appear side by side.

I used css properties to change but it does not works.

<?= $form->field($model, 'ReportSelection[]')->checkboxList(['1' => 'Channel1', '2' => 'Channel2','3'=>'Channel3','4'=>'Channel4','5' => 'Channel5', '6' => 'Channel6','7'=>'Channel7','8'=>'Channel8','9' => 'Channel9','10' => 'Channel10', '11' => 'Channel11','12'=>'Channel12','13'=>'Channel13','14' => 'Channel14', '15' => 'Channel15','16'=>'Channel16','17'=>'Channel17','18' => 'Channel18','19'=>'Channel19','20'=>'Channel20','21'=>'Channel21','22' => 'Channel22', '23' => 'Channel23','24'=>'Channel24','25'=>'Channel25','26' => 'Channel26', '27' => 'Channel27','28'=>'Channel28','29'=>'Channel29','30' => 'Channel30', '31' => 'Channel31','32'=>'Channel32'],['multiple'=>'multiple']); ?>

I expect the output to be like checkboxes side by side,but it is one below one.


Viewing all articles
Browse latest Browse all 140734

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>