S
S
Sergey2016-07-26 17:18:15
Yii
Sergey, 2016-07-26 17:18:15

How to make two different checkboxes in a row?

There are two checkboxes

<?= $form->field($model, 'send_mail')->checkboxList(['1' => 'EMAIL'])->label('Уведомить покупателя?'); ?>
<?= $form->field($model, 'send_sms')->checkboxList(['1' => 'SMS'])->label('Уведомить покупателя?'); ?>

they look like this
245b50df5d474aafa58f16a38bcfd62a.jpg
How to achieve such a result?
de3bdc9d3d88409593b8ae24c4aecc19.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Smykov, 2016-07-26
@spy_reality

1. You enclose your checkboxes in a div or any other tag
2. You write in the styles the selector of your "div or any tag"

.blablabla{
    display: inline-flex;
}

Be smart - helped, then mark with a solution!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question