S
S
sokolnikov2016-02-14 18:09:40
Yii
sokolnikov, 2016-02-14 18:09:40

How to make Html::checkboxList standalone instead of inline?

I use Html::checkboxList like this:

Html::checkboxList('practice', null, $practice, ['class'=>'checkbox'])

Checkboxes with captions are displayed all in one line as if using .checkbox-inline
How can I force them to be displayed in a column so that the checkbox is under the checkbox?
And then it turns out like this:
b3e0e751950744dcb04d198998c4ef42.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Karl Meinhoff, 2016-02-14
@KarleKremen

Example: codepen.io/kkremen/pen/ZQwNqE
In short:

.checkbox {
    display: block;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question