modal align center yii2
Sure, I can provide you with a straightforward answer without any personal words or sentences.
To align the modal in the center in Yii2, you can use the modal-dialog-centered
class in the modal's options
property. Here's an example:
<?= \yii\bootstrap\Modal::widget([
'options' => [
'class' => 'modal-dialog-centered',
],
// Other modal configuration
]) ?>
With this code, the modal will be aligned in the center of the screen.