Hi how can I align my dropdownlist to my form and to put label before it,just the same with my textfield.
<?php $form = ActiveForm::begin(['layout' => 'horizontal']); ?>
<?= Html::activeDropDownList($model,'comp_name', ArrayHelper::map($model::find()->all(), 'compid', 'comp_name'),
['prompt'=>'----select company----']) ?>
<?= $form->field($model, 'periodfrom') ?>
<?= $form->field($model, 'periodto') ?>
<?php ActiveForm::end(); ?>
Thank you in advance.