In Yii2 the dataProvider to display horizontally?

I have this GridView:
echo GridView::widget([
 'dataProvider' => new ArrayDataProvider([
 'allModels' => $user['photos']['items'],
 'pagination' => [
 'pageSize' => 5,
 'columns' => [
 'attribute' => 'photos',
 'label' => 'photo',
 'format' => 'html',
 'value' => function ($model) {
 return @Html::img($model['photo_604'], ['class' => 'request-view-img']);

Which displays a picture. In this case, each photo is displayed on a new line.
How to display 5 pictures in one line?
July 8th 19 at 16:27
1 answer
July 8th 19 at 16:29
To do this, you are unlikely to fit the GridView, it is just for convenience for tabular data. You find it easier to use the widget ListView
And the ListView how to display horizontally? - jessy38 commented on July 8th 19 at 16:32
: CSS styles the same. This is not a question about Yii2, but at the expense of styles. Google about inline-block, for example - sofia.Runte28 commented on July 8th 19 at 16:35

Find more questions by tags PHP